spring-cloud-alibaba icon indicating copy to clipboard operation
spring-cloud-alibaba copied to clipboard

Enable @ConditionalOnLoadBalancerNacos by default, as Ribbon has been…

Open cuitlideng20-blip opened this issue 4 months ago • 2 comments

Describe what this PR does / why we need it

Avoid requiring users to manually configure spring.cloud.loadbalancer.nacos.enabled=true in app configuration files such as application.yml. Instead, use Spring Boot auto-configuration to set up the load balancer. Since the Spring Cloud Alibaba Nacos Discovery starter has removed Ribbon support, the only available load balancer is Spring Cloud LoadBalancer — it should be enabled by default.

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

cuitlideng20-blip avatar Aug 06 '25 08:08 cuitlideng20-blip

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


thomas lee seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Aug 06 '25 08:08 CLAassistant

Hello, thank you for your PR! However, we currently do not recommend using Nacos LoadBalancer as the default option. This would change the default configuration for many users and could lead to some unexpected issues when integrating with SpringCloud LoadBalancer.

uuuyuqi avatar Oct 14 '25 08:10 uuuyuqi