FilterDispatcher is deprecated!
http://www.cnblogs.com/babybluevino/archive/2012/11/29/2794732.html
>>> FilterDispatcher <<< is deprecated!
在struts2.3.7下,web.xml中使用
… <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class>會出現
***********************************************************************
*?????????????????????????????? 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 StrutsPrepareFilterand StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one..即,從Struts 2.1.3起已被標注為過時的,改用StrutsPrepareAndExecuteFilter
解決方法,將web.xml上述代碼改為:
?
?
總結
以上是生活随笔為你收集整理的FilterDispatcher is deprecated!的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解析JVM线程同步机制
- 下一篇: Eclipse中DTD验证导致无法进行代