Where to put struts.xml

后端 未结 6 1818
死守一世寂寞
死守一世寂寞 2021-02-07 04:41

With Struts2 we have to have struts.xml in the class path, so it no longer works to have it under WEB-INF. So the way I got my project to deploy was to stick it und

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 05:07

    You can either just put the struts.xml at the root of your source directory or set up an additional resources source directory and put it there. Eclipse quite happily copies it to WEB-INF/classes for you when it does a compilation.

提交回复
热议问题