1
我添加了所有的安全和应用程序所需要的库和相关验证多重角色正在为单一角色&任何作用的情况下在春季安全
单: <security:intercept-url pattern="/**" access="hasRole('enabled')" />
任何角色 <security:intercept-url pattern="/**" access="hasAnyRole('enabled','view')" />
是否有方法使用表达式检查多个(AND或所有角色)角色?
谢谢,这工作! - 表达式可以执行,也可以执行 –