若是配置在spring-security中沒有權限控制效果,能夠配置在springmvc中試試spring
1 <security:global-method-security pre-post-annotations="enabled"/> 2 <security:global-method-security jsr250-annotations="enabled"/> 3 <security:global-method-security secured-annotations="enabled"/>