添加负载均衡Ribbon后,启动springboot时 [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class] cannot be opened because it does not exist报错
原因jar版本问题,ServerPropertiesAutoConfiguration,在springboot 2.x.x 以后移除了,当springboot>=2.x.x ,其他jar包加载 涉及到ServerPropertiesAutoConfiguration 就会报错了+
我引用的是
解决org.springframework.cloud spring-cloud-starter-zuul 1.4.7.RELEASE
查看Maven官网,修改引用为
总结:org.springframework.cloud spring-cloud-starter-netflix-ribbon 2.2.9.RELEASE
版本要对应,否则就会出现各种报错



