修复 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>

 

 

posted @ 2021-08-24 16:56  贝尔塔猫  阅读(6058)  评论(0)    收藏  举报