File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/modules/ROOT/pages/servlet/authorization Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ class MethodSecurityConfig {
548
548
@Bean
549
549
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
550
550
public Advisor customAuthorize(AuthorizationManager<MethodInvocationResult> rules) {
551
- AnnotationMethodMatcher pattern = new AnnotationMethodMatcher (MySecurityAnnotation.class);
551
+ AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut (MySecurityAnnotation.class);
552
552
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules);
553
553
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
554
554
return interceptor;
@@ -564,7 +564,7 @@ class MethodSecurityConfig {
564
564
@Bean
565
565
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
566
566
fun customAuthorize(rules : AuthorizationManager<MethodInvocationResult>) : Advisor {
567
- val pattern = AnnotationMethodMatcher (MySecurityAnnotation::class.java);
567
+ val pattern = AnnotationMatchingPointcut (MySecurityAnnotation::class.java);
568
568
val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules);
569
569
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
570
570
return interceptor;
You can’t perform that action at this time.
0 commit comments