Skip to content

Commit 21ceb33

Browse files
committed
Merge branch '5.8.x' into 6.0.x
Closes gh-12517
2 parents 4e80338 + 6f43104 commit 21ceb33

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
@@ -562,7 +562,7 @@ class MethodSecurityConfig {
562562
@Bean
563563
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
564564
public Advisor customAuthorize(AuthorizationManager<MethodInvocationResult> rules) {
565-
AnnotationMethodMatcher pattern = new AnnotationMethodMatcher(MySecurityAnnotation.class);
565+
AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut(MySecurityAnnotation.class);
566566
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules);
567567
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
568568
return interceptor;
@@ -579,7 +579,7 @@ class MethodSecurityConfig {
579579
@Bean
580580
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
581581
fun customAuthorize(rules : AuthorizationManager<MethodInvocationResult>) : Advisor {
582-
val pattern = AnnotationMethodMatcher(MySecurityAnnotation::class.java);
582+
val pattern = AnnotationMatchingPointcut(MySecurityAnnotation::class.java);
583583
val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules);
584584
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
585585
return interceptor;

0 commit comments

Comments
 (0)