当前位置:网站首页>No servers available for service: xxxx

No servers available for service: xxxx

2022-07-04 14:30:00 Cute Xiaoxin @ Yuanjie


One . Situation 1 Import load balancing configuration

The high version load balancing configuration is independent and needs to be imported

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
            <version>3.1.2</version>
        </dependency>

Two . Situation two nacos The namespace problem

nacos Calls between different namespaces are not supported , Leading me to gateway Service cannot get service , It turned out that 503.

Do not configure namespaces for service discovery id, Just configure the registration . This is a big hole ( At the same time, pay attention to the modification bootstrap Medium group)
 Insert picture description here
 Insert picture description here
 Insert picture description here


原网站

版权声明
本文为[Cute Xiaoxin @ Yuanjie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041252240636.html