diff --git a/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc b/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc index 395cae873f..7cb0917c99 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/expression-based.adoc @@ -210,7 +210,7 @@ You could then refer to the method as follows: ---- http .authorizeHttpRequests(authorize -> authorize - .requestMatchers("/user/{userId}/**").access("@webSecurity.checkUserId(authentication,#userId)") + .requestMatchers("/user/{userId}/**").access(new WebExpressionAuthorizationManager("@webSecurity.checkUserId(authentication,#userId)")) ... ); ----