Where to put struts.xml

后端 未结 6 1819
死守一世寂寞
死守一世寂寞 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:10

    You can place struts.xml file in src(Java Resources) packages. When the compilation process struts.xml file will generate inside the ROOT/WEB-INF/classes directory.

    if you get the same error again and again better check the struts actions. check the deployed path of the application and you can find out what you want. (struts.xml file)

提交回复
热议问题