Upgrade struts to 2.5.0 2 problems encountered and solutions (recommended)

The original version was 2.3 x. It needs to be upgraded to 2.5.0 for security reasons 2。

1,2.5. Version 2 no longer provides xwork Jar, integrated into the struts core package.

2. For the problem that the method cannot be accessed, you need to add strict method invocation = "false" in each action configuration file:

And modify the header of the configuration file to version 2.5:

3. For the problem of session failure, for the WebLogic Server, add the session descriptor node:

4,2.5. Version 2 JDK requires 1.7 5, web XML

Amend to read:

The above is a small series to introduce struts upgrade to 2.5 2 problems encountered and solutions (recommended), I hope to help you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>