首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

诠注-方法保护

2012-07-15 
注解--方法保护@RolesAllowed和@Secured注解需要开启security:global-method-securitysecured-annotation

注解--方法保护
@RolesAllowed
和@Secured
注解需要开启
<security:global-method-security
secured-annotations="enabled" jsr250-annotations="enabled"></security:global-method-security>(我是为actin拦截,所以定义在了spring mvc的配置文件中。
但是@Secured一直无效,所以只能用@RolesAllowed,不知道是不是spring security3.05不支持了。

热点排行