This method: add for action user1 is not allowed!
这是因为 struts2.5 为了提升安全性,添加了 allomethod 。
在struts.xml 的package下添加一行
<global-allowed-methods>regex:.*</global-allowed-methods>即可。
本文介绍了如何解决 Struts2.5 中因增加安全性导致的方法调用问题。通过在 struts.xml 文件中配置 global-allowed-methods,可以实现对特定方法的全局放行。
This method: add for action user1 is not allowed!
这是因为 struts2.5 为了提升安全性,添加了 allomethod 。
在struts.xml 的package下添加一行
<global-allowed-methods>regex:.*</global-allowed-methods>即可。
3130

被折叠的 条评论
为什么被折叠?