Skip to main content

Posts

Showing posts with the label @EnableWebSecurity

Factory method 'filterChain' threw exception with message: This object has already been built

  Problem org.springframework.beans.factory.UnsatisfiedDependencyException : Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'filterChain' defined in class path resource [com/.class]: Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Factory method 'filterChain' threw exception with message: This object has already been built at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments( AutowiredAnnotationBeanPostProcessor.java:817 ) ~[spring-beans-6.0.4.jar:6.0.4] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject( AutowiredAnnotationBeanPostProcessor.java:769 ) ~[spring-beans-6.0.4.jar:6.0.4] at org.spri