码迷,mamicode.com
首页 > 其他好文 > 详细

struts文件异常Included file cannot be found

时间:2016-12-16 22:29:20      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:其他   粘贴   文件路径   文件   include   strong   方案   struts   not   

1.命名规范,都是采用struts-xxx.xml文件,即以struts开头

2.file的路径不要以/开头,在其他版本是以/开头的

  <include file="/com/bjsxt/struts2/ognl/ognl.xml"/>这一行报错,提示错误Included file cannot be found,

  解决方案是将文件路径前面的/去掉<include file="com/bjsxt/struts2/ognl/ognl.xml"/>

3.复制struts.xml,然后改名,struts-user.xml,再粘贴,这样就不会报错了。

 或者 新建一个xml,然后将内容复制粘贴进去。

 

 

struts文件异常Included file cannot be found

标签:其他   粘贴   文件路径   文件   include   strong   方案   struts   not   

原文地址:http://www.cnblogs.com/haimishasha/p/6188228.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!