Struts中action访问不到的原因。

因为需要在项目中构造restful的链接,action通配符使用/进行分割。但是struts默认不支持反斜杠。

所以需要在Struts.xml配置

<constant name="struts.enable.SlashesInActionNames" value="true"/>

即可使用反斜杠。

posted @ 2017-06-21 10:05  CoderV的进阶笔记  阅读(460)  评论(0编辑  收藏  举报