Skip to content
Snippets Groups Projects

Fix aws spring6 build

Merged Bruce Jin requested to merge fix-aws-spring6-build into spring6-migration
Files
2
@@ -36,6 +36,7 @@ import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.access.AccessDeniedHandler;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.handler.HandlerMappingIntrospector;
import java.io.IOException;
import java.io.PrintWriter;
@@ -73,6 +74,11 @@ public class AuthSecurityConfig implements AccessDeniedHandler, AuthenticationEn
authFilter = new AuthenticationRequestFilter(entitlementsUrl, handlerExceptionResolver);
}
@Bean(name = "mvcHandlerMappingIntrospector")
public HandlerMappingIntrospector mvcHandlerMappingIntrospector() {
return new HandlerMappingIntrospector();
}
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(
Loading