Error Message:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘orderInfoController’: Unsatisfied dependency expressed through field ‘baseFeign’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.sinoeve.ctm.orderconsumer.Feign.BaseFeign’: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE
The interface did not clearly indicate an error, so I had to target the pom configuration file first. As expected, it was a POM configuration problem
The error introduced here should correctly be
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency>
Similar Posts:
- [Solved] SpringbootExpection 1: Error creating bean with name ‘xxxImpl’: Unsatisfied dependency expressed through field
- [Solved] Dependency injection exception: org.springframework.beans.factory.UnsatisfiedDependencyException
- [Solved] Error creating bean with name ‘xxxxController’: Unsatisfied dependency expressed through field ‘xxxxService’;
- Property ‘dataSource’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
- Springcloud: gateway module startup error
- [Solved] Springboot Use Redis Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘redisTemplate’ defined in class path resource
- How to Solve the login error of Spring + Shiro CacheManager
- org.springframework.beans.factory.BeanCreationException: Could not autowire field org.springfram… [How to Solve]
- [Solved] Cause: java.lang.ClassNotFoundException: Cannot find class: xxxx
- [Solved] Error creating bean with name ‘orderController’: Unsatisfied dependency expressed through field ‘orderService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: