We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08afa17 commit 50da5b6Copy full SHA for 50da5b6
docs/modules/ROOT/pages/migration/servlet/config.adoc
@@ -409,7 +409,9 @@ import static org.springframework.security.web.util.matcher.AntPathRequestMatche
409
@Bean
410
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
411
http
412
- .securityMatcher(antMatcher("/api/**"), antMatcher("/app/**"))
+ .securityMatchers((matchers) -> matchers
413
+ .requestMatchers(antMatcher("/api/**"), antMatcher("/app/**"))
414
+ )
415
.authorizeHttpRequests((authz) -> authz
416
.requestMatchers(antMatcher("/api/admin/**")).hasRole("ADMIN")
417
.anyRequest().authenticated()
0 commit comments