I’m getting the following Error when i start my Springboot-App:
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/mgmtp/a12/uaa/authentication/security/internal/UAAGlobalSecurityConfiguration.class]: Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Factory method ‘filterChain’ threw exception with message: This method cannot decide whether these patterns are Spring MVC patterns or not. If this endpoint is a Spring MVC endpoint, please use requestMatchers(MvcRequestMatcher); otherwise, please use requestMatchers(AntPathRequestMatcher). - {} -
i`ve defind excplitly spring-boot-starter-security,version: ‘3.1.2’ and spring-security-web:6.1.2