SpringBoot升级
文章目录
从SpringBoot1.5.7.RELEASE升级到2.6.6版本
官网查看对应版本:https://spring.io/projects/spring-cloud
| SpringCloud版本 | SpringBoot版本 |
|---|---|
| 2022.0.0-M2 | Spring Boot >=3.0.0-M2 and ❤️.1.0-M1 |
| 2022.0.0-M1 | Spring Boot >=3.0.0-M1 and ❤️.0.0-M2 |
| 2021.0.3 | Spring Boot >=2.6.1 and ❤️.0.0-M1 |
| 2021.0.0-RC1 | Spring Boot >=2.6.0-RC1 and <2.6.1 |
| 2021.0.0-M3 | Spring Boot >=2.6.0-M3 and <2.6.0-RC1 |
| 2021.0.0-M1 | Spring Boot >=2.6.0-M1 and <2.6.0-M3 |
| 2020.0.5 | Spring Boot >=2.4.0.M1 and <2.6.0-M1 |
| Hoxton.SR12 | Spring Boot >=2.2.0.RELEASE and <2.4.0.M1 |
| Hoxton.BUILD-SNAPSHOT | Spring Boot >=2.2.0.BUILD-SNAPSHOT |
| Hoxton.M2 | Spring Boot >=2.2.0.M4 and <=2.2.0.M5 |
| Greenwich.BUILD-SNAPSHO | Spring Boot >=2.1.9.BUILD-SNAPSHOT and <2.2.0.M4 |
| Greenwich.SR2 | Spring Boot >=2.1.0.RELEASE and <2.1.9.BUILD-SNAPSHOT |
| Greenwich.M1 | Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE |
| Finchley.BUILD-SNAPSHOT | Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3 |
| Finchley.SR4 | Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT |
| Finchley.RC2 | Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE |
| Finchley.RC1 | Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE |
| Finchley.M9 | Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE |
| Finchley.M7 | Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2 |
| Finchley.M6 | Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1 |
| Finchley.M5 | Spring Boot >=2.0.0.M7 and <=2.0.0.M7 |
| Finchley.M4 | Spring Boot >=2.0.0.M6 and <=2.0.0.M6 |
| Finchley.M3 | Spring Boot >=2.0.0.M5 and <=2.0.0.M5 |
| Finchley.M2 | Spring Boot >=2.0.0.M3 and <2.0.0.M5 |
| Edgware.SR5 | 1.5.20.RELEASE |
| Edgware. |

本文主要介绍了在升级SpringBoot过程中遇到的挑战,包括Bean的循环引用问题,推荐使用@Lazy注解来解决。此外,还讨论了SpringCloud与SpringBoot版本不匹配导致的错误,如NoSuchMethodError。解决方法是查找并更新相关依赖到兼容版本,例如将feign替换为openfeign。针对数据源创建失败的问题,提到了可能是由于DruidDataSourceAutoConfigure导致的,可以通过排除配置类来解决。文章最后推荐使用Maven Helper插件来分析和解决依赖冲突。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



