
springboot
潇凝子潇
世界上有两种【没有bug】的代码。 一种是 【没有明显bug的代码】,另一种是【明显没有bug的代码】。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring boot 集成 elasticsearch
【代码】spring boot 集成 elasticsearch。原创 2023-04-16 20:46:05 · 220 阅读 · 0 评论 -
统一处理返回结果
统一处理返回结果1. 自定义返回结果注解/** * 该方法只可以用到类和方法上 * @Author: * @CreateTime: 2022-3-31 10:42 * @Description: 统一处理返回结果注解 */@Documented@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.TYPE, ElementType.METHOD})public @interface ResponseResult {}原创 2022-03-31 16:15:04 · 204 阅读 · 0 评论 -
自定义注解获取当前登录人信息
import java.lang.annotation.*;/** * * 获取当前登录人信息 * 该注解可用于 类 ,方法,参数上 * @author * @since 2020-06-18 */@Documented@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.TYPE, ElementType.METHOD,ElementType.PARAMETER})public @interface TaiJi...原创 2020-10-28 15:26:45 · 936 阅读 · 3 评论 -
Spring Boot 开源项目
SmartAdmin :项目地址:https://gitee.com/lab1024/smart-adminlitemall:项目地址:https://gitee.com/linlinjava/litemallTimo:项目地址:https://gitee.com/aun/Timomall4j:项目地址:https://gitee.com/gz-yami/mall4jweb-flash:项目地址:https://gitee.com/enilu/web-flashSPT原创 2020-09-22 14:02:13 · 220 阅读 · 0 评论 -
Failed to bind properties under ‘spring.servlet.multipart.file-size-threshold‘ to
Description:Failed to bind properties under 'spring.servlet.multipart.file-size-threshold' to org.springframework.util.unit.DataSize: Property: spring.servlet.multipart.file-size-threshold Value: 20M Origin: class path resource [applicat...原创 2020-07-29 13:53:13 · 1436 阅读 · 0 评论 -
springboot开启项目热部署功能
Idea中开启springboot 项目热部署功能1. 在pom.xml中添加 maven插件 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifa原创 2020-05-19 22:08:58 · 712 阅读 · 0 评论 -
springboot 启动流程
springboot 启动源码解析注: 以下源码是基于: 2.2.6.RELEASE 版本做的摘录分析<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starters</artifactId> <ve...原创 2020-04-30 16:19:40 · 280 阅读 · 0 评论 -
自定义springboot的starter
右击 2. 创建一个maven项目3. 配置项目信息4. 项目结构/** * redis enable * @author xulihui * @date 2020/4/27 23:44 */@Documented@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUN...原创 2020-04-28 00:35:08 · 220 阅读 · 0 评论 -
统一枚举,对外提供一劳永逸的访问接口
【代码】统一枚举,对外提供一劳永逸的访问接口。原创 2020-04-17 22:12:10 · 1033 阅读 · 1 评论 -
java.lang.IllegalArgumentException: Address 127.0.0.1:5672:5672 seems to contain an unquoted IPv6
1. 应用程序报错如下:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rabbitConnectionFactory' defined in class path resource [org/springframework/boot/a...原创 2020-02-26 14:22:04 · 3179 阅读 · 2 评论 -
springmvc 接收前端对象 中包含list的数据的处理方法
<form id="search_form" role="form"> <div class="form-group mc-form-group"> <label class="control-label">认证状态</label> <select id="certifiedStatus" mu...原创 2020-01-04 21:13:30 · 850 阅读 · 0 评论 -
springboot 整合示例
GitHub:https://github.com/spring-projects/spring-boothttps://github.com/spring-projects/spring-boot/tree/master/spring-boot-project原创 2019-09-24 15:54:00 · 163 阅读 · 0 评论 -
springboot集成 携程 Apollo 报 please check whether the configs are released in Apollo 错误
14:23:43 [ main] c.c.f.a.i.RemoteConfigRepository [WARN ] Load config failed, will retry in 1 SECONDS. appId: test, cluster: dev, namespaces: application14:23:44 [ main] ...原创 2019-09-18 14:46:50 · 7988 阅读 · 0 评论 -
worker
1. github 地址 :https://github.com/mrxlh/worker.git2. 环境介绍 前端: 采用 Ant Designhttps://ant.design/index-cn 后端: 采用 springboot + mybatis + mysql + 封装的base类3. 克隆项目 在 git bash 中执行 以下命令...原创 2019-07-10 16:32:31 · 1455 阅读 · 0 评论 -
spring boot 2.X 集成 actuator 监控
1.引入相关依赖 actuator<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId></dependency>2.添加相关配置...原创 2019-07-10 14:47:54 · 892 阅读 · 1 评论 -
springboot 启动较慢的原因排除
是因为启动时打断点的缘故,顾启动时取消断点,方可大大提高启动速度Method breakpoints may dramatically slow down debugging /方法断点可能会大大降低调试速度Loaded classes are up to date. Nothing to reload. /加载的类是最新的。无需重新加载。...原创 2019-04-10 16:21:41 · 2555 阅读 · 0 评论