一、下载相关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元素。

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄