Change default location of struts.xml in Struts2
问题 I've created a Struts2 project which is working fine when I place my struts.xml file inside src directory. Below is my web.xml configuration. <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>struts2project</display-name> <filter> <filter-name>struts2<