Closed
Description
Describe the bug
Application context fails to load after upgrading from spring boot version 3.1.5 to 3.2.1 with error message: “Couldn't find FilterChainProxy” in a list of Filters.
SecurityConfig is defined as follows:
@Configuration @EnableWebSecurity(debug = true) class SecurityConfig { @Bean fun filterChain(http: HttpSecurity): SecurityFilterChain {…} }
The issue is in the debug flag of the @EnableWebSecurity annotation. If the debug flag is set to true, the Filter is instantiated with the type of DebugFilter instead of the FilterChainProxy.