You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfigurerAdapter.java
+18-1
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,24 @@
91
91
* @see EnableWebSecurity
92
92
* @deprecated Use a {@link org.springframework.security.web.SecurityFilterChain} Bean to
93
93
* configure {@link HttpSecurity} or a {@link WebSecurityCustomizer} Bean to configure
94
-
* {@link WebSecurity}
94
+
* {@link WebSecurity}. <pre>
95
+
* @Bean
96
+
* public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
97
+
* http
98
+
* .authorizeHttpRequests((authz) ->
99
+
* authz.anyRequest().authenticated()
100
+
* );
101
+
* // ...
102
+
* return http.build();
103
+
* }
104
+
*
105
+
* @Bean
106
+
* public WebSecurityCustomizer webSecurityCustomizer(WebSecurity web) {
0 commit comments