Changing struts.xml file name for a multi-module Maven web project

后端 未结 1 1870
慢半拍i
慢半拍i 2020-12-10 20:52

I have a Maven project with multiple modules. Out of four modules, two of them are web modules.

Here is the structure.

MyProject
   |
   |__ api
   |         


        
相关标签:
1条回答
  • 2020-12-10 21:20

    Specify explicitly config file in the struts filter initialization parameter.

    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>struts.xml,struts-config.xml,struts-default.xml,struts-plugin.xml</param-value>
        </init-param>
    </filter>
    
    0 讨论(0)
提交回复
热议问题