ITeye博客

自定义过滤器时,不能再使用<sec:authorize url="">问题

wutao8818 · 2014-11-24 10:40 · bizarrerie · 编程语言 · Spring Security · Markdown

需要添加applicationContext-security.xml文件中添加以下配置 [code="xml"] [/code] 其中myFilterSecurityInterceptor为自定义扩展的AbstractSecurityInterceptor 另外一个关键的地方时以上的配置文件必须在 [code="xml"][/code] 配置以前,如果位置不对,也不会产生效果。 参考:[url]http://hi.baidu.com/gestapo8/item/4e78d3d78dae3095270ae745[/url]

评论(1)

  1. #1 楼 · koreajapan03 · 2016-03-30 14:28

    楼主啊,好人啊,帮我解决了问题,谢谢 :idea:

评论功能维护中,当前仅展示历史评论。