You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/src/main/resources/org/springframework/security/config/spring-security-5.8.rnc
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -202,8 +202,8 @@ msmds.attlist &= id?
202
202
msmds.attlist &= use-expressions?
203
203
204
204
method-security =
205
-
## Provides method security for all beans registered in the Spring application context. Specifically, beans will be scanned for matches with Spring Security annotations. Where there is a match, the beans will automatically be proxied and security authorization applied to the methods accordingly. Interceptors are invoked in the order specified in AuthorizationInterceptorsOrder. Use can create your own interceptors using Spring AOP.
206
-
element method-security {method-security.attlist, expression-handler?}
205
+
## Provides method security for all beans registered in the Spring application context. Specifically, beans will be scanned for matches with Spring Security annotations. Where there is a match, the beans will automatically be proxied and security authorization applied to the methods accordingly. Interceptors are invoked in the order specified in AuthorizationInterceptorsOrder. Use can create your own interceptors using Spring AOP. Also, annotation-based interception can be overridden by expressions listed in <protect-pointcut> elements.
206
+
element method-security {method-security.attlist, expression-handler?, protect-pointcut*}
207
207
method-security.attlist &=
208
208
## Specifies whether the use of Spring Security's pre and post invocation annotations (@PreFilter, @PreAuthorize, @PostFilter, @PostAuthorize) should be enabled for this application context. Defaults to "true".
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/method/MethodSecurityBeanDefinitionParserTests.java
<protect-pointcutexpression="execution(* org.springframework.security.access.annotation.BusinessService.*(..)) and not execution(* org.springframework.security.access.annotation.BusinessService.someOther(String)))"access="hasRole('USER')"/>
0 commit comments