diff --git a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc index e96467ef60..5711da0780 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc @@ -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() ) // ...