如果声明为true,那么在access属性要用hasRole()这样写:
<intercept-url pattern="/secure/extreme/**" access="hasRole(‘ROLE_SUPERVISOR‘)"/>
如果声明为false(默认),那么access直接就是
<intercept-url pattern="/secure/extreme/**" access="ROLE_USER"/>
时间: 2024-11-01 11:15:21
如果声明为true,那么在access属性要用hasRole()这样写:
<intercept-url pattern="/secure/extreme/**" access="hasRole(‘ROLE_SUPERVISOR‘)"/>
如果声明为false(默认),那么access直接就是
<intercept-url pattern="/secure/extreme/**" access="ROLE_USER"/>