FilterDispatcher is deprecated! - What is the replacement for FilterDispatcher?

前端 未结 3 598
孤城傲影
孤城傲影 2021-01-01 19:22

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.

3条回答
  •  春和景丽
    2021-01-01 20:16

    The FilterDispatcher (org.apache.struts2.dispatcher.FilterDispatcher) is used in the early Struts2 development, and it’s deprecated since Struts 2.1.3.

    If you are using Struts version >= 2.1.3, it’s always recommended to upgrade the new filter class – StrutsPrepareAndExecuteFilter (org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter).

    for references

    FilterDispatcher documentation

    StrutsPrepareAndExecuteFilter documentation

提交回复
热议问题