mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 00:32:14 +00:00
Fix method call example on documentation
This commit is contained in:
parent
7841827169
commit
11a74a2926
@ -161,7 +161,7 @@ Or you can provide it for all requests as seen below:
|
||||
SecurityFilterChain web(HttpSecurity http) throws Exception {
|
||||
http
|
||||
.authorizeHttpRequests((authorize) -> authorize
|
||||
.anyRequest.access(new CustomAuthorizationManager());
|
||||
.anyRequest().access(new CustomAuthorizationManager());
|
||||
)
|
||||
// ...
|
||||
|
||||
@ -183,7 +183,7 @@ SecurityFilterChain web(HttpSecurity http) throws Exception {
|
||||
http
|
||||
.authorizeHttpRequests((authorize) -> authorize
|
||||
.shouldFilterAllDispatcherTypes(false)
|
||||
.anyRequest.authenticated()
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
// ...
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user