1。建立一个maven项目,添加一个web.xml文件

maven整合web项目(struts2)


2.添加插件

maven整合web项目(struts2)


3.添加struts2的依赖

4,创建struts.xml

5.  创建Action类

6.   在web.xml中配置核心过滤器

7 启动:run as tomcat:runs


相关文章: