Skip to content

Commit 28b5b7a

Browse files
committed
Merge branch '3.0.x' into 3.1.x
2 parents 30cc2a4 + 9d91dbc commit 28b5b7a

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/src/main/java/smoketest/actuator/customsecurity

1 file changed

+2
-2
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/src/main/java/smoketest/actuator/customsecurity/SecurityConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ SecurityFilterChain configure(HttpSecurity http, HandlerMappingIntrospector hand
6767
requests.requestMatchers(EndpointRequest.toAnyEndpoint().excluding(MappingsEndpoint.class))
6868
.hasRole("ACTUATOR");
6969
requests.requestMatchers(PathRequest.toStaticResources().atCommonLocations()).permitAll();
70-
requests.requestMatchers("/foo").permitAll();
71-
requests.requestMatchers(new AntPathRequestMatcher("/error")).permitAll();
70+
requests.requestMatchers(new AntPathRequestMatcher("/foo")).permitAll();
71+
requests.requestMatchers(new MvcRequestMatcher(handlerMappingIntrospector, "/error")).permitAll();
7272
requests.requestMatchers(new AntPathRequestMatcher("/**")).hasRole("USER");
7373
});
7474
http.cors(withDefaults());

0 commit comments

Comments
 (0)