From 9025d1d250edfa7572b832483bd6e02237c8f327 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 21 Apr 2022 08:08:20 +0200 Subject: [PATCH] Fix deprecation warning See gh-28851 --- .../security/servlet/SpringBootWebSecurityConfiguration.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/SpringBootWebSecurityConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/SpringBootWebSecurityConfiguration.java index a0cde6f342..0a7a5d853f 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/SpringBootWebSecurityConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/SpringBootWebSecurityConfiguration.java @@ -34,7 +34,6 @@ import org.springframework.core.annotation.Order; import org.springframework.security.config.BeanIds; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; -import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.web.SecurityFilterChain; import org.springframework.security.web.access.WebInvocationPrivilegeEvaluator; @@ -45,13 +44,12 @@ import org.springframework.security.web.access.WebInvocationPrivilegeEvaluator; */ @Configuration(proxyBeanMethods = false) @ConditionalOnWebApplication(type = Type.SERVLET) -@SuppressWarnings("deprecation") class SpringBootWebSecurityConfiguration { /** * The default configuration for web security. It relies on Spring Security's * content-negotiation strategy to determine what sort of authentication to use. If - * the user specifies their own {@link WebSecurityConfigurerAdapter} or + * the user specifies their own {@code WebSecurityConfigurerAdapter} or * {@link SecurityFilterChain} bean, this will back-off completely and the users * should specify all the bits that they want to configure as part of the custom * security configuration.