首页 > 移动平台 > 详细

class path resource [spring/ApplicationContext-springmvc.xml] cannot be opened because it does not exist

时间:2017-08-12 11:34:34      阅读:308      评论:0      收藏:0      [点我收藏+]

配置如下:

<init-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>classpath:spring/ApplicationContext-springmvc.xml</param-value>
  </init-param>

原因是:IDE认为spring文件夹是在source下的,所以找不到

解决方案:

在classpath后面加个*

如下:

<init-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>classpath*:spring/ApplicationContext-springmvc.xml</param-value>
  </init-param>

class path resource [spring/ApplicationContext-springmvc.xml] cannot be opened because it does not exist

原文:http://www.cnblogs.com/sunshinekevin/p/7349575.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!