SpringCloud项目启动报错
***************************
APPLICATION FAILED TO START
***************************
Description:
Your project setup is incompatible with our requirements due to following reasons:
- Spring Boot [2.2.2.RELEASE] is not compatible with this Spring Cloud release train
Action:
Consider applying the following actions:
- Change Spring Boot version to one of the following versions [2.3.x, 2.4.x] .
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]
登录 spring官网,查看springcloud和boot版本对应关系。
https://spring.io/projects/spring-cloud#overview
Release Train | Boot Version |
---|---|
Hoxton |
2.2.x |
Greenwich |
2.1.x |
Finchley |
2.0.x |
Edgware |
1.5.x |
Dalston |
1.5.x |
当初偷懒,springcloud引入过程中pom中的version直接写的是RELEASE。由于boot对应的版本是2.2.2.RELEASE,将springcloud版本修改为Hoxton.SR3,reimport,再次编译通过。
虽然官网springboot最新版本已发布2.3.0,没有看到与springcloud间的对应关系,没有更新到 2.3.x版了。