struts2
一、下载相关jar包 http://struts.apache.org/
二、创建web项目
libs:commons-fileupload.jar、commons-io.jar、cmmons-logging.jar、freemarker.jar、ognl.jar、struts2-core.jar、xwork-core.jar、commons-langs.jar、javassist.CA.jar
三、创建并完善相关配置
四、创建action并测试使用
struts.properties(与struts.xml同路径),struts框架的全局属性文件,自动加载,该文件可以配置在struts.xml文件中,使用constant元素。

浙公网安备 33010602011771号