mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.
Apache License 2.0
245 stars 55 forks source link

Error creating bean with name 'charonReverseProxyFilterRegistrationBean' #9

Closed Jacuo closed 7 years ago

Jacuo commented 8 years ago

When I tried to use charon sproing boot starter I have an error

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'charonReverseProxyFilterRegistrationBean' defined in class .......................................... [org.springframework.web.client.RestOperations]: No qualifying bean of type [org.springframework.web.client.RestOperations] found for dependency: expected at least 1 bean which qual ifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=charonRestOperations)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.web.client.RestOperations] found for dependency: expected at least 1 bean

mkopylec commented 8 years ago

Hi, this is quite strange. Can you provide some more code to analize? Please make sure you have added @EnableCharon to your Spring Boot application root class. Also check if you are using the latest version of Charon which is 1.4.2