首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

struts2 升格报filters deprecated

2013-01-05 
struts2 升级报filters deprecated文章摘抄至http://blog.sina.com.cn/s/blog_7a0d9dca01014fn2.html?在st

struts2 升级报filters deprecated

文章摘抄至http://blog.sina.com.cn/s/blog_7a0d9dca01014fn2.html

?

在struts2.3.7下,web.xml中使用

struts2 升格报filters deprecated

会出现
***********************************************************************
*?????????????????????????????? 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??????????? *
*???????????????????????????????????????????????????????????????????? *
***********************************************************************
原因在于:

Class FilterDispatcher
Deprecated. Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilter and StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one
解决方法,将web.xml上述代码改为:

struts2 升格报filters deprecated

热点排行