org.springframework.cloud.client.loadbalancer.AsyncLoadBalancerAutoConfiguration找不到类
时间: 2023-09-22 07:10:55 浏览: 298
spring-cloud-loadbalancer-3.1.1-API文档-中文版.zip
5星 · 资源好评率100%
org.springframework.cloud.client.loadbalancer.AsyncLoadBalancerAutoConfiguration类找不到的问题可能是由于spring-cloud-commons.jar包存在冲突导致的。新版本的spring-cloud-commons取消了OnNoRibbonDefaultCondition类,可能会导致找不到AsyncLoadBalancerAutoConfiguration类。
解决方法是在pom.xml中引入正确的spring-cloud-commons依赖。你可以将以下代码添加到pom.xml中:
```xml
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-commons</artifactId>
<version>2.2.9.RELEASE</version>
</dependency>
```
这样就能解决找不到AsyncLoadBalancerAutoConfiguration类的问题了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [springboot启动类](https://download.csdn.net/download/list_change/10750335)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [找不到org.springframework.cloud.client.loadbalancer.reactive.OnNoRibbonDefaultCondition](https://blog.csdn.net/slxz001/article/details/119698220)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文