Caused by: java.lang.IllegalStateException: No Feign Client for loadBalancing defined.

Caused by: java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?报错

可能在使用SpringCloud中使用了一下eureka的依赖,由于以下依赖不包含ribbon的负载均衡的配置。

  
            org.springframework.cloud
            spring-cloud-netflix-eureka-client
        

应使用一下的依赖:


        org.springframework.cloud
        spring-cloud-starter-netflix-eureka-client
    

问题解决!

你可能感兴趣的:(报错专区,spring,spring,boot,ribbon,java)