Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-06-26 15:42:31.976 ERROR 208496 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Your project setup is incompatible with our requirements due to following reasons:

- Spring Boot [2.3.0.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.4.x, 2.5.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]


Disconnected from the target VM, address: '127.0.0.1:10542', transport: 'socket'

Process finished with exit code 1

按提示升级SpringBoot的版本或者将SpringCloud的版本降低,使得二者相互支持。

错误原因,跟着网上的教程写代码时,将IDEA自动生成的工程里pom的SpringBoot版本与教程中保持一致,启动项目报错。为后续出错少些,将SpringCloud的版本降级,与教程里的保持一致。

2020.03

修改为

Hoxton.SR8

重新启动工程OK

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐