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

知识的价值不在于占有,而在于使用。这篇文章主要讲述class path resource [spring/ApplicationContext-springmvc.xml] cannot be opened because it does not e相关的知识,希望能为你提供帮助。
配置如下:
【class path resource [spring/ApplicationContext-springmvc.xml] cannot be opened because it does not e】< 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>







    推荐阅读