chore(deps): Spring Boot 2.5.15→2.7.18 + MyBatis Plus 3.5.5→3.5.16

升级内容:
- Spring Boot 2.5.15 → 2.7.18 (含 Spring Security 5.7, Tomcat 9.0.96)
- MyBatis Plus 3.5.5 → 3.5.16 (含 mybatis-plus-jsqlparser 拆分模块)
- JSqlParser 4.5 → 5.2 (MyBatis Plus 3.5.9+ 要求)
- PageHelper 1.4.7 → 2.1.1 (兼容 JSqlParser 5.x)
- mysql:mysql-connector-java → com.mysql:mysql-connector-j (Spring Boot 2.7 BOM 变更)

兼容性修复:
- FieldStrategy.IGNORED → FieldStrategy.NEVER (3.5.16 重命名)
- ScanOptionsBuilder → ScanOptions.scanOptions() 工厂方法
- saveOrUpdate(entity, wrapper) → saveOrUpdate(entity) (wrapper 签名移除)
- PermitAllUrlProperties: getBean(class) → getBean(name,class) + null 检查
- application.yml: 添加 spring.mvc.pathmatch.matching-strategy=ant-path-matcher
- application.yml: 禁用 springfox (与 Spring Boot 2.7 不兼容)

验证结果:
-  mvn clean package -DskipTests BUILD SUCCESS
-  登录接口 HTTP 200
-  分页查询 (数据字典 326 条, 用户 84 条)
-  路由信息 (22 个顶级菜单)
-  流程引擎 (Flowable) 正常初始化
This commit is contained in:
2026-06-04 13:34:35 +08:00
parent bb7eb2eca7
commit dbe146725a
14 changed files with 465 additions and 37 deletions

View File

@@ -63,7 +63,7 @@ public class FrequencyController {
frequency.setDayTimes(dayTimesStr); // 将转换后的字符串设置到 Frequency 对象
}
return R.ok(frequencyService.saveOrUpdate(frequency, new LambdaQueryWrapper<Frequency>().eq(Frequency::getRateCode, frequency.getRateCode())),MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"保存频次详情"}));
return R.ok(frequencyService.saveOrUpdate(frequency),MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"保存频次详情"}));
}
@DeleteMapping("{id}")

View File

@@ -53,6 +53,9 @@ user:
# Spring配置
spring:
mvc:
pathmatch:
matching-strategy: ant-path-matcher
main:
allow-circular-references: true
# 资源信息
@@ -108,6 +111,11 @@ pagehelper:
auto-runtime-dialect: true
# Swagger配置
# 禁用 Springfox (与 Spring Boot 2.7 不兼容, 后续迁移至 springdoc)
springfox:
documentation:
enabled: false
swagger:
# 是否开启swagger
enabled: true