解决不联网无法启动struts2问题
将struts.xml中的声明部分
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
替换为 struts2-core-2.xxx.jar中struts-default.xml的文件声明
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
也就是说要保持一致。默认包中用的2.0 而 struts.xml中却用了2.1 所以会出现问题 替换一下就解决了