1>> 下载struts2所需要的jar文件
首页上就可以直接点击下载需要的最新版本。
Tomcat 删除掉。
2>>添加struts2的配置文件 struts.xml ---dtd-->核心的jar文件中 可以找到 dtd文件
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
3>>在web.xml文件中 添加启动struts2 MVC框架的过滤器
加载struts2的配置文件 面试题
struts-default.xml
struts-plugin.xml
struts.xml
struts.properties
web.xml
注意:如果在多个文件中配置了同一个常量,则后一个文件中配置的常量值会覆盖前面文件中配置的常量值.