Skip to content

Commit 2028507

Browse files
committed
Fix Typo in Sample
Closes gh-11095
1 parent ffdb397 commit 2028507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ class MethodSecurityConfig {
547547
@Bean
548548
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
549549
public Advisor customAuthorize(AuthorizationManager<MethodInvocationResult> rules) {
550-
AnnotationMethodMatcher pattern = new AnnotationMethodMatcher(MySecurityAnnotation.class);
550+
AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut(MySecurityAnnotation.class);
551551
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules);
552552
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
553553
return interceptor;
@@ -563,7 +563,7 @@ class MethodSecurityConfig {
563563
@Bean
564564
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
565565
fun customAuthorize(rules : AuthorizationManager<MethodInvocationResult>) : Advisor {
566-
val pattern = AnnotationMethodMatcher(MySecurityAnnotation::class.java);
566+
val pattern = AnnotationMatchingPointcut(MySecurityAnnotation::class.java);
567567
val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules);
568568
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
569569
return interceptor;

0 commit comments

Comments
 (0)