File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/modules/ROOT/pages/servlet/authorization Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1265,8 +1265,8 @@ import static org.springframework.security.authorization.AuthorityAuthorizationM
1265
1265
@Bean
1266
1266
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
1267
1267
static Advisor protectServicePointcut() {
1268
- JdkRegexpMethodPointcut pattern = new JdkRegexpMethodPointcut ();
1269
- pattern.setPattern ("execution(* com.mycompany.*Service.*(..))");
1268
+ AspectJExpressionPointcut pattern = new AspectJExpressionPointcut ();
1269
+ pattern.setExpression ("execution(* com.mycompany.*Service.*(..))");
1270
1270
return new AuthorizationManagerBeforeMethodInterceptor(pattern, hasRole("USER"));
1271
1271
}
1272
1272
----
@@ -1281,8 +1281,8 @@ companion object {
1281
1281
@Bean
1282
1282
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
1283
1283
fun protectServicePointcut(): Advisor {
1284
- var pattern = JdkRegexpMethodPointcut ();
1285
- pattern.setPattern ("execution(* com.mycompany.*Service.*(..))");
1284
+ var pattern = AspectJExpressionPointcut ();
1285
+ pattern.setExpression ("execution(* com.mycompany.*Service.*(..))");
1286
1286
return new AuthorizationManagerBeforeMethodInterceptor(pattern, hasRole("USER"));
1287
1287
}
1288
1288
}
You can’t perform that action at this time.
0 commit comments