本文主要是介绍shiroFilter与bean 配置一致的原由,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
targetBean 会默认取filterName
在实例化bean 取targetBeanName
同是也可以配置targetBeanName
<filter><filter-name>shiroFilter1</filter-name><filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class><init-param><param-name>targetFilterLifecycle</param-name><param-value>true</param-value></init-param><init-param><param-name>targetBeanName</param-name><param-value>shiroFilter</param-value></init-param></filter><filter-mapping><filter-name>shiroFilter1</filter-name><url-pattern>/*</url-pattern></filter-mapping>
</web-app>
这篇关于shiroFilter与bean 配置一致的原由的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!