1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE struts PUBLIC 3 "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" 4 "http://struts.apache.org/dtds/struts-2.0.dtd"> 5 6 <struts> 7 <constant name="struts.devMode" value="true" /> 8 9 <!-- include file 就是模块包含 其相当于将login.xml整个复制到这个xml中 --> 10 <include file="login.xml" /> 11 </struts>
尽量将公用的部分包含入一个xml文件中