struts2-(2)HelloWorld

1.环境配置

1).进入http://struts.apache.org/download.cgi#struts23241 下载 struts官方源码

2).解压,进入apps/struts2-blank/WEB-INF/lib/  拷贝安装包

3).加入struts.xml配置文件

4).找到配置文件关联文档,(为了让strtus.xml里面有提示)

Window-->Prefrence-->XML-->XMLCatalog-->add

Location-->struts-2.3.24.1/src/core/src/main/resources/struts-2.3.dtd

Key type-->URL

key-->http://struts.apache.org/dtds/struts-2.3.dtd

2.HelloWorld

原文地址:https://www.cnblogs.com/fubaizhaizhuren/p/5084234.html