SpringBoot
Dear.er
这个作者很懒,什么都没留下…
展开
-
SpringCloud 学习笔记(2)- Eureka 服务注册与发现
sa原创 2020-12-08 17:40:54 · 211 阅读 · 1 评论 -
SpringBoot 2.x 通用 YML
文章目录1、application-database.yml2、application-mybatis-plus.yml3、application-pagehelper.yml4、application-redis.yml5、合并 yml1、application-database.ymlspring: datasource: # 数据源 driver-class-name: com.mysql.cj.jdbc.Driver username: root password:原创 2020-12-08 11:43:36 · 216 阅读 · 0 评论 -
SpringCloud 学习笔记(1)
文章目录1、Spring Cloud 版本选择2、Spring Cloud 停更组件说明3、Spring Cloud 升级4、Spring Cloud 父工程构建4.1、父工程构建4.2、父工程 pom4.3、Maven 工程落地细节复习5、Rest 微服务工程构建5.1、构建步骤5.2、新建 cloud-api-commons 公共模块1、Spring Cloud 版本选择官网:https://spring.io/projects/spring-cloud选择版本:https://start.spr原创 2020-12-08 11:38:48 · 184 阅读 · 0 评论 -
IDEA 2020.1 配置分布式多模块启动
首先创建好对应的微服务,至少两个服务以上新版本的 RunDash 被 Services 所替代点击加号选择 Application重新启动项目即可原创 2020-12-08 10:47:52 · 1121 阅读 · 1 评论 -
SpringBoot 2.x 配置热部署 Devtools
文章目录1、添加 devtools 到你的工程目录2、添加 plugin 到你的 pom.xml3、Enabling automatic build4、Update the value5、重启 idea1、添加 devtools 到你的工程目录 <!-- 热部署 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b原创 2020-12-08 10:40:52 · 114 阅读 · 0 评论 -
SpringBoot 2.x 返回统一数据格式
1、返回码定义/** * 返回码定义 * 规定: * # 1 表示成功 * # 1001~1999 区间表示参数错误 * # 2001~2999 区间表示用户错误 * # 3001~3999 区间表示接口异常 */public enum ResultCode { /* 成功 */ SUCCESS(200, "成功"), /* 默认失败 */ COMMON_FAIL(999, "失败"), /* 参数错误:1000~1999 */ PAR原创 2020-12-08 10:25:54 · 224 阅读 · 0 评论