如何在Spring Security 3中添加多个自定义过滤器?
2022-09-03 16:26:14
我需要为FORM_LOGIN_FILTER添加两个自定义过滤器,例如
<custom-filter after="FORM_LOGIN_FILTER" ref="myUsernamePasswordAuthenticationFilter" />
<custom-filter after="FORM_LOGIN_FILTER" ref="myUsernamePasswordAuthenticationFilter2" />
我期望的过滤器序列是:
1.预定义的FORM_LOGIN_FILTER
2。myUsernamePasswordAuthenticationFilter
3.myUsernamePasswordAuthenticationFilter2
但以上会导致配置错误。那么,有人知道如何编写正确的配置吗?谢谢!