这个问题是jar版本问题,ServerPropertiesAutoConfiguration,在springboot 2.x.x 以后移除了,当springboot>=2.x.x ,其他jar包加载 涉及到ServerPropertiesAutoConfiguration 就会报错了,比如我引用如下,就会报错,
解决方法是:
SpringBoot 版本是:
org.springframework.cloud spring-cloud-starter-feign1.4.7.RELEASE
替换成
org.springframework.cloud spring-cloud-starter-openfeign
spring-cloud-starter-feign 中除去spring-cloud-starter-openfeign 外还有spring-boot-autoconfigure-processor 包。
但是依然报这个错,排查后发现是springCloud报错
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId><version>0.1.1</version></dependency>
替换为
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId><version>0.2.1</version></dependency>
热门文章
- springBoot项目启动时报错org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class
- 12月25日 | Trojan节点订阅每天更新19.6M/S免费节点订阅链接
- 1月3日 | Trojan节点订阅每天更新18.3M/S免费节点订阅链接
- 开一个宠物医院用word文档怎么弄(如何开办宠物医院论文)
- 1月30日 | Trojan节点订阅每天更新22.1M/S免费节点订阅链接
- 1月29日 | Trojan节点订阅每天更新22.4M/S免费节点订阅链接
- 动物疫苗销售模式(动物疫苗销售许可证如何办理)
- 中国农大动物医院的咨询电话 中国农大动物医院的咨询电话是多少
- vue实现图文混合输入
- 动物接种疫苗的好处有哪些方面的内容和方法(动物疫苗的作用)