diff --git a/docs/modules/ROOT/pages/migration/servlet/config.adoc b/docs/modules/ROOT/pages/migration/servlet/config.adoc index 83e8178a2f..b7b58a7120 100644 --- a/docs/modules/ROOT/pages/migration/servlet/config.adoc +++ b/docs/modules/ROOT/pages/migration/servlet/config.adoc @@ -409,7 +409,9 @@ import static org.springframework.security.web.util.matcher.AntPathRequestMatche @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http - .securityMatcher(antMatcher("/api/**"), antMatcher("/app/**")) + .securityMatchers((matchers) -> matchers + .requestMatchers(antMatcher("/api/**"), antMatcher("/app/**")) + ) .authorizeHttpRequests((authz) -> authz .requestMatchers(antMatcher("/api/admin/**")).hasRole("ADMIN") .anyRequest().authenticated()