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