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