From f94435d592e6bc32ffd73ed8561f3f8eda4d5fac Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 16 Dec 2021 09:08:05 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E3=80=90=E5=8D=87=E7=BA=A7=E3=80=91redisso?= =?UTF-8?q?n=20from=203.16.3=20to=203.16.6=EF=BC=8C=E8=A7=A3=E5=86=B3=20St?= =?UTF-8?q?ream=20=E5=9C=A8=E8=B0=83=E8=AF=95=E5=9C=BA=E6=99=AF=E4=B8=8B?= =?UTF-8?q?=E4=BC=9A=E5=AD=98=E5=9C=A8=20NPE=20=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20*=20=E3=80=90=E5=8D=87=E7=BA=A7=E3=80=91spring-boot=20from?= =?UTF-8?q?=202.4.5=20to=202.4.12=EF=BC=8C=E6=9C=80=E6=96=B0=E7=9A=84=20Sp?= =?UTF-8?q?ring=20Boot=202.6.X=20=E5=9C=A8=E7=AD=89=E6=9B=B4=E6=B5=81?= =?UTF-8?q?=E8=A1=8C=E4=B8=80=E4=BA=9B=EF=BC=8C=E7=A8=B3=E5=AE=9A=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=20*=20=E3=80=90=E5=8D=87=E7=BA=A7=E3=80=91druid=20fro?= =?UTF-8?q?m=201.2.4=20to=201.2.8=EF=BC=8C=E6=8F=90=E5=8D=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5=E6=B1=A0=E7=9A=84=E7=A8=B3?= =?UTF-8?q?=E5=AE=9A=E6=80=A7=20*=20=E3=80=90=E5=8D=87=E7=BA=A7=E3=80=91dy?= =?UTF-8?q?namic-datasource=20from=203.3.2=20to=203.5.0=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=8A=A8=E6=80=81=E6=95=B0=E6=8D=AE=E6=BA=90=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++-------- pom.xml | 4 ++-- .../test/resources/application-unit-test.yaml | 9 +++++++++ yudao-dependencies/pom.xml | 8 ++++---- 更新日志.md | 5 +++++ 5 files changed, 28 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7643e877b3..4743b8f9c6 100644 --- a/README.md +++ b/README.md @@ -97,21 +97,21 @@ | 框架 | 说明 | 版本 | 学习指南 | | --- | --- | --- | --- | -| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.4.5 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | +| [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.4.12 | [文档](https://github.com/YunaiV/SpringBoot-Labs) | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.7 | | -| [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.4 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | -| [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.4.1 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | -| [Dynamic Datasource](https://dynamic-datasource.com/) | 动态数据源 | 3.3.2 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | +| [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.2.8 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | +| [MyBatis Plus](https://mp.baomidou.com/) | MyBatis 增强工具包 | 3.4.3.4 | [文档](http://www.iocoder.cn/Spring-Boot/MyBatis/?yudao) | +| [Dynamic Datasource](https://dynamic-datasource.com/) | 动态数据源 | 3.5.0 | [文档](http://www.iocoder.cn/Spring-Boot/datasource-pool/?yudao) | | [Redis](https://redis.io/) | key-value 数据库 | 5.0 | | -| [Redisson](https://github.com/redisson/redisson) | Redis 客户端 | 3.1.46 | [文档](http://www.iocoder.cn/Spring-Boot/Redis/?yudao) | -| [Spring MVC](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc) | MVC 框架 | 5.4.6 | [文档](http://www.iocoder.cn/SpringMVC/MVC/?yudao) | -| [Spring Security](https://github.com/spring-projects/spring-security) | Spring 安全框架 | 5.4.6 | [文档](http://www.iocoder.cn/Spring-Boot/Spring-Security/?yudao) | +| [Redisson](https://github.com/redisson/redisson) | Redis 客户端 | 3.16.6 | [文档](http://www.iocoder.cn/Spring-Boot/Redis/?yudao) | +| [Spring MVC](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc) | MVC 框架 | 5.3.13 | [文档](http://www.iocoder.cn/SpringMVC/MVC/?yudao) | +| [Spring Security](https://github.com/spring-projects/spring-security) | Spring 安全框架 | 5.4.9 | [文档](http://www.iocoder.cn/Spring-Boot/Spring-Security/?yudao) | | [Hibernate Validator](https://github.com/hibernate/hibernate-validator) | 参数校验组件 | 6.1.7 | [文档](http://www.iocoder.cn/Spring-Boot/Validation/?yudao) | | [Quartz](https://github.com/quartz-scheduler) | 任务调度组件 | 2.3.2 | [文档](http://www.iocoder.cn/Spring-Boot/Job/?yudao) | | [Knife4j](https://gitee.com/xiaoym/knife4j) | Swagger 增强 UI 实现 | 3.0.2 | [文档](http://www.iocoder.cn/Spring-Boot/Swagger/?yudao) | | [Resilience4j](https://github.com/resilience4j/resilience4j) | 服务保障组件 | 1.7.0 | [文档](http://www.iocoder.cn/Spring-Boot/Resilience4j/?yudao) | | [SkyWalking](https://skywalking.apache.org/) | 分布式应用追踪系统 | 8.5.0 | [文档](http://www.iocoder.cn/Spring-Boot/SkyWalking/?yudao) | -| [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.3.1 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | +| [Spring Boot Admin](https://github.com/codecentric/spring-boot-admin) | Spring Boot 监控平台 | 2.4.2 | [文档](http://www.iocoder.cn/Spring-Boot/Admin/?yudao) | | [Jackson](https://github.com/FasterXML/jackson) | JSON 工具库 | 2.11.4 | | | [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.4.1 | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | | [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.16.14 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | diff --git a/pom.xml b/pom.xml index 1991389bcc..0f791a822f 100644 --- a/pom.xml +++ b/pom.xml @@ -58,9 +58,9 @@ - aliyun + aliyunmaven aliyun - http://maven.aliyun.com/nexus/content/groups/public + https://maven.aliyun.com/repository/public diff --git a/yudao-core-service/src/test/resources/application-unit-test.yaml b/yudao-core-service/src/test/resources/application-unit-test.yaml index d306a7af43..d360045b9c 100644 --- a/yudao-core-service/src/test/resources/application-unit-test.yaml +++ b/yudao-core-service/src/test/resources/application-unit-test.yaml @@ -6,6 +6,12 @@ spring: --- #################### 数据库相关配置 #################### spring: +# sql: +# init: +# schema-locations: classpath:sql/create_tables.sql +# username: sa +# password: +# enabled: true # 数据源配置项 datasource: name: ruoyi-vue-pro @@ -23,6 +29,9 @@ spring: host: 127.0.0.1 # 地址 port: 16379 # 端口(单元测试,使用 16379 端口) database: 0 # 数据库索引 + integration: + jdbc: + initialize-schema: mybatis: lazy-initialization: true # 单元测试,设置 MyBatis Mapper 延迟加载,加速每个单元测试 diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml index 4f329e120d..7678254e77 100644 --- a/yudao-dependencies/pom.xml +++ b/yudao-dependencies/pom.xml @@ -16,17 +16,17 @@ 1.3.0-snapshot - 2.4.5 + 2.4.12 3.0.2 1.5.22 2.5 5.1.46 - 1.2.4 + 1.2.8 3.4.3.4 - 3.3.2 - 3.16.3 + 3.5.0 + 3.16.6 1.7.0 diff --git a/更新日志.md b/更新日志.md index cd739ba57c..1ce68bc940 100644 --- a/更新日志.md +++ b/更新日志.md @@ -30,6 +30,11 @@ ### 🔨 Dependency Upgrades +* 【升级】redisson from 3.16.3 to 3.16.6,解决 Stream 在调试场景下会存在 NPE 的问题 +* 【升级】spring-boot from 2.4.5 to 2.4.12,最新的 Spring Boot 2.6.X 在等更流行一些,稳定第一 +* 【升级】druid from 1.2.4 to 1.2.8,提升数据库连接池的稳定性 +* 【升级】dynamic-datasource from 3.3.2 to 3.5.0,修复动态数据源切换的问题 + ### 📝 TODO * 支付