修复 Could not find class [org.springframework.cloud.client.loadbalancer.LoadBalancerProperties]

 
 
 
将 spring-cloud-starter-loadbalancer 升级到 2.2.0.RELEASE
 
1)将 gulimall-common/pom.xml 中 spring-cloud-starter-loadbalancer 版本修改为 2.2.0.RELEASE
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-loadbalancer</artifactId>
    <version>2.2.0.RELEASE</version>
</dependency>
2)将 gulimall-common/pom.xml 中 spring-cloud-alibaba-dependencies 版本修改为 2.2.1.RELEASE
<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.2.1.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>
 

原文地址:https://www.cnblogs.com/CyLee/p/15181138.html