毕业设计项目中用到了ssh框架,在项目启动时如果不联网会报找不到dtd文件,经过一段时间的查找,发现是因为struts2-core包版本与struts-spring-plugin和struts2-convention-plugin的版本不一致导致,改用同一版本即可解决