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 @@ -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;
You can’t perform that action at this time.
0 commit comments