Skip to content

Commit 606bd12

Browse files
committed
Deprecate WebSecurityConfigurerAdapter
Closes gh-10822
1 parent b451ede commit 606bd12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -89,8 +89,12 @@
8989
*
9090
* @author Rob Winch
9191
* @see EnableWebSecurity
92+
* @deprecated Use a {@link org.springframework.security.web.SecurityFilterChain} Bean to
93+
* configure {@link HttpSecurity} or a {@link WebSecurityCustomizer} Bean to configure
94+
* {@link WebSecurity}
9295
*/
9396
@Order(100)
97+
@Deprecated
9498
public abstract class WebSecurityConfigurerAdapter implements WebSecurityConfigurer<WebSecurity> {
9599

96100
private final Log logger = LogFactory.getLog(WebSecurityConfigurerAdapter.class);

0 commit comments

Comments
 (0)