... 60 common frames omitted
Caused by: java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?
at org.springframework.cloud.netflix.feign.FeignClientFactoryBean.loadBalance(FeignClientFactoryBean.java:214) ~[spring-cloud-netflix-core-1.4.5.RELEASE.jar:1.4.5.RELEASE]
at org.springframework.cloud.netflix.feign.FeignClientFactoryBean.getObject(FeignClientFactoryBean.java:232) ~[spring-cloud-netflix-core-1.4.5.RELEASE.jar:1.4.5.RELEASE]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
... 70 common frames omitted
At that time, I didn’t pay much attention to my configuration, and I kept reporting errors. I also checked the source code for the breakpoint. I couldn’t find the client. No one encountered Baidu before.
The solution is the one configured in the configuration file, I chose okhttp, but this jar is not included in my project. At first I always thought that I was using httpclient. Encountered such a problem, it took 2 hours to solve, depressed!
No Feign Client for loadBalancing
defined. Did you forget to include spring-cloud-starter-netflix-ribbon?