My application is a Spring Boot + Jersey web app. I followed this official tutorial to integrate togglz with my Spring Boot application. I added the dependency togglz-spring-boot-starter
to my project. But I always get below missing bean error when launching the Spring Boot application. According to the togglz spring-boot guide, it says this dependency should add all the missing beans into the application. What am I missing here?
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'togglzEndpoint' defined in class path resource [org/togglz/spring/boot/autoconfigure/TogglzAutoConfiguration$TogglzEndpointConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.togglz.core.manager.FeatureManager]: : Error creating bean with name 'featureManager' defined in class path resource [org/togglz/spring/boot/autoconfigure/TogglzAutoConfiguration$FeatureManagerConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.togglz.core.spi.FeatureProvider]: : No qualifying bean of type [org.togglz.core.spi.FeatureProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.togglz.core.spi.FeatureProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'featureManager' defined in class path resource [org/togglz/spring/boot/autoconfigure/TogglzAutoConfiguration$FeatureManagerConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.togglz.core.spi.FeatureProvider]: : No qualifying bean of type [org.togglz.core.spi.FeatureProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.togglz.core.spi.FeatureProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.togglz.core.spi.FeatureProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}