Remove unused parameter

This commit is contained in:
Phillip Webb
2025-05-08 22:52:27 -07:00
parent e3cf078fee
commit f08d3a5ed0

View File

@@ -31,7 +31,6 @@ import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher;
import org.springframework.web.servlet.handler.HandlerMappingIntrospector;
import static org.springframework.security.config.Customizer.withDefaults;
@@ -57,8 +56,7 @@ public class SecurityConfiguration {
}
@Bean
SecurityFilterChain configure(HttpSecurity http, HandlerMappingIntrospector handlerMappingIntrospector)
throws Exception {
SecurityFilterChain configure(HttpSecurity http) throws Exception {
http.authorizeHttpRequests((requests) -> {
requests.requestMatchers(PathPatternRequestMatcher.withDefaults().matcher("/actuator/beans"))
.hasRole("BEANS");