当前位置: 首页 > news >正文

Springboot 2.x 升级到Springboot 2.7.x问题汇总

Springboot 2.x 升级到Springboot 2.7.x问题

Springboot 2.x 升级到Springboot 2.7.x问题汇总

不废话 上干货

改变

1.mysql依赖groupId和artifactId更改;

        <dependency><groupId>com.mysql</groupId><artifactId>mysql-connector-j</artifactId></dependency>
  1. hibernate-validator依赖更改;
		<dependency><groupId>org.hibernate.validator</groupId><artifactId>hibernate-validator</artifactId></dependency>
  1. 去除Nacos配置中心文件中的中文或者启动java增加VM参数 -Dfile.encoding=utf-8;
  2. 如果使用了redisson-spring-boot-starter 修改依赖版本为(这个坑刚开始报listener.lazy null指针错误,很坑, 怀疑redis连接问题,才定位到这个依赖进入看,旧版本依赖的springboot是2.5.x)
	   <dependency><groupId>org.redisson</groupId><artifactId>redisson-spring-boot-starter</artifactId><version>3.18.0</version></dependency>

http://www.mrgr.cn/news/79180.html

相关文章:

  • mysql集群NDB方式部署
  • 基于python爬虫的智慧人才数据分析系统
  • string类函数的手动实现
  • mysql中的skip_name_resolve详解
  • 速通SpringBoot+vue全栈开发教程
  • 贪心算法题
  • Python3:pytest+request+yaml+allure接口自动化测试
  • <工具 Claude Desktop> 配置 MCP server 连接本地 SQLite, 本机文件夹(目录) 网络驱动器 Windows 11 系统
  • 4. IO Stream
  • 工业—使用Flink处理Kafka中的数据_ChangeRecord2
  • PHP语法学习(第三天)
  • 深入浅出:Go语言中map的工作原理详解
  • Redis设计与实现读书笔记
  • 万字长文解读深度学习——dVAE(DALL·E的核心部件)
  • centos 手动安装libcurl4-openssl-dev库
  • (12)时间序列预测之MICN(CNN)
  • 基于ZooKeeper搭建Hadoop高可用集群
  • 深入浅出:Python 编程语言的学习之路
  • 工业—使用Flink处理Kafka中的数据_ChangeRecord1
  • OpenVas安装步骤及报错问题