diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java index 1c76a0bc84..78ff7f14e8 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -89,8 +89,12 @@ import org.springframework.web.accept.HeaderContentNegotiationStrategy; * * @author Rob Winch * @see EnableWebSecurity + * @deprecated Use a {@link org.springframework.security.web.SecurityFilterChain} Bean to + * configure {@link HttpSecurity} or a {@link WebSecurityCustomizer} Bean to configure + * {@link WebSecurity} */ @Order(100) +@Deprecated public abstract class WebSecurityConfigurerAdapter implements WebSecurityConfigurer { private final Log logger = LogFactory.getLog(WebSecurityConfigurerAdapter.class);