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

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM