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 {
547
547
@Bean
548
548
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
549
549
public Advisor customAuthorize(AuthorizationManager<MethodInvocationResult> rules) {
550
- AnnotationMethodMatcher pattern = new AnnotationMethodMatcher (MySecurityAnnotation.class);
550
+ AnnotationMatchingPointcut pattern = new AnnotationMatchingPointcut (MySecurityAnnotation.class);
551
551
AuthorizationManagerAfterMethodInterceptor interceptor = new AuthorizationManagerAfterMethodInterceptor(pattern, rules);
552
552
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
553
553
return interceptor;
@@ -563,7 +563,7 @@ class MethodSecurityConfig {
563
563
@Bean
564
564
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
565
565
fun customAuthorize(rules : AuthorizationManager<MethodInvocationResult>) : Advisor {
566
- val pattern = AnnotationMethodMatcher (MySecurityAnnotation::class.java);
566
+ val pattern = AnnotationMatchingPointcut (MySecurityAnnotation::class.java);
567
567
val interceptor = AuthorizationManagerAfterMethodInterceptor(pattern, rules);
568
568
interceptor.setOrder(AuthorizationInterceptorsOrder.POST_AUTHORIZE_ADVISOR_ORDER.getOrder() + 1);
569
569
return interceptor;
You can’t perform that action at this time.
0 commit comments