1。建立一个maven项目,添加一个web.xml文件 2.添加插件 3.添加struts2的依赖 4,创建struts.xml 5. 创建Action类 6. 在web.xml中配置核心过滤器 7 启动:run as tomcat:runs 相关文章: