FilterDispatcher 已弃用!- FilterDispatcher 的替代品是什么? [英] FilterDispatcher is deprecated! - What is the replacement for FilterDispatcher?
本文介绍了FilterDispatcher 已弃用!- FilterDispatcher 的替代品是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何避免以下错误?我正在 Struts2 上实现 Spring-Security,应用程序运行正常,但服务器日志中会显示以下消息.
How to avoid the following error? I am implementing Spring-Security on Struts2, the application runs perfectly but the following message will be shown on server log.
WARNING!!!
FilterDispatcher <<< is deprecated! Please use the new filters!
This can be a source of unpredictable problems!
Please refer to the docs for more details!
http://struts.apache.org/2.x/docs/webxml.html
推荐答案
我建议点击链接并按照它所说的去做:
I'd recommend following the link and doing what it says:
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
这篇关于FilterDispatcher 已弃用!- FilterDispatcher 的替代品是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文