导入Ribbon后启动报错
org.springframework.beans.factory.BeanDefinitionStoreException:
Failed to process import candidates for configuration class [com.hcx.DeptConsumer_80]; nested exception is java.io.FileNotFoundException: class path resource
[org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class] cannot be opened because it does not exist
atorg.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:610) ~[spring-context-5.3.9.jar:5.3.9]
这是因为依赖被弃用了
(deprecated, please use spring-cloud-starter-netflix-ribbon)
(已弃用,请使用spring cloud starter netflix ribbon)
以后看到这个就不要去用了。