@PreAuthorize不起作用
解决:将security:global-method-security从SpringSecurity.xml中转移到SpringMVC.xml配置文件中即可解决
<security:global-method-security pre-post-annotations=“enabled” jsr250-annotations=“enabled”
secured-annotations=“enabled” proxy-target-class=“true”/>
PreAuthorize 拦截无效 不起作用
最新推荐文章于 2024-07-05 17:43:20 发布