【发布时间】:2015-05-28 12:42:43
【问题描述】:
如果我在@Secured Annotation 中使用没有“ROLE_”前缀的行会有什么影响?假设 spring security RoleVoter 期望角色以 "ROLE_" 为前缀。
- @Secured({"ADMIN"})
- @Secured({"ROLE_ADMIN"}) 公共无效样本方法(样本类样本对象){ 运营; }
【问题讨论】:
标签: java spring security spring-security spring-annotations