Spring Security 3.0: How do I specify URLs to which a custom filter applies?

后端 未结 2 1089
借酒劲吻你
借酒劲吻你 2021-01-18 09:05

I am using Spring Security 3.0 with JSPs. I have created a RequireVerificationFilter that redirects unverified users to a \"verify your email\" page.

I added the fi

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 09:26

    You have to do this inside the actual configuration xml (same place you have the .

    
       
       
       ...
    
    

    Something along those lines, you can specify a list of the filters you want to run and exclude those you don't (and "none" means none). You should not need to add tyour filter to the web.xml - only inline with the Spring Security filter chain.

提交回复
热议问题