diff --git a/src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/security5/AuthorizeHttpRequestsTest.java b/src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/security5/AuthorizeHttpRequestsTest.java index 2873c8b6..013f37c9 100644 --- a/src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/security5/AuthorizeHttpRequestsTest.java +++ b/src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/security5/AuthorizeHttpRequestsTest.java @@ -114,14 +114,13 @@ SecurityFilterChain web(HttpSecurity http) throws Exception { import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; - import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer; import org.springframework.security.web.SecurityFilterChain; @Configuration public class JdbcSecurityConfiguration { @Bean SecurityFilterChain web(HttpSecurity http) throws Exception { - AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry reqs = http.authorizeHttpRequests(); + org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer.AuthorizationManagerRequestMatcherRegistry reqs = http.authorizeHttpRequests(); reqs.antMatchers("/ll").authenticated(); return http.build(); }