Skip to content

Commit 6f43104

Browse files
committed
Merge branch '5.7.x' into 5.8.x
Closes gh-12516
2 parents ae46032 + 2028507 commit 6f43104

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
@@ -548,7 +548,7 @@ class MethodSecurityConfig {
548548
@Bean
549549
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
550550
public Advisor customAuthorize(AuthorizationManager<MethodInvocationResult> rules) {
551-
AnnotationMethodMatcher pattern = new AnnotationMethodMatcher(MySecurityAnnotation.class);
551+
AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut(MySecurityAnnotation.class);
552552
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules);
553553
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
554554
return interceptor;
@@ -564,7 +564,7 @@ class MethodSecurityConfig {
564564
@Bean
565565
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
566566
fun customAuthorize(rules : AuthorizationManager<MethodInvocationResult>) : Advisor {
567-
val pattern = AnnotationMethodMatcher(MySecurityAnnotation::class.java);
567+
val pattern = AnnotationMatchingPointcut(MySecurityAnnotation::class.java);
568568
val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules);
569569
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
570570
return interceptor;

0 commit comments

Comments
 (0)