Struts2.1.6

xiaoxiao2024-03-29  30

1. 至少需要如下6个jar包: struts2-core-2.1.6.jar freemarker-2.3.13.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.1.2.jar commons-fileupload-1.2.1.jar

 

不要加入多余的插件包,否则易出错。

 

2.  如果要使用Struts2的注释功能,还需要引用struts2-convention-plugin-2.1.6.jar,注释类在org.apache.struts2.convention.annotation包中。

 

3. 在Struts2.1.6的Result注释中使用location属性代替了value属性(不再有value属性了,但使用方法相同)。

 

4. 配置文件的编码最好一概采用UTF-8

 

相关资源:struts2.1.6 所必须的6个jar包
转载请注明原文地址: https://www.6miu.com/read-5014600.html

最新回复(0)