1
嗨这里我的问题是添加条件语句中@preauthorize春天注释 ,我需要给Users_view和Users_manage许可主体,但我不能同时添加权限像下面 @PreAuthorize("hasPermission(#id, 'com.foo', 'USERS_VIEW','USERS_MANAGE')")
在@preauthorize我有一个像下面条件语句@preauthorize EL
@PreAuthorize("hasPermission(#id, 'com.foo', 'USERS_VIEW') OR hasPermission(#id, 'com.foo', 'USERS_VIEW')")
将弹簧支撑条件子句中@preauthorize因此,如果没有什么是该解决方案的想法。(这里我只需要使用@preauthorize而不是hasroles [])
在此先感谢