Răsfoiți Sursa

Deprecate WebSecurityConfigurerAdapter

Closes gh-10822
Eleftheria Stein 3 ani în urmă
părinte
comite
606bd120fb

+ 5 - 1
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<WebSecurity> {
 
 	private final Log logger = LogFactory.getLog(WebSecurityConfigurerAdapter.class);