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

Posted SunshineKevin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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>







以上是关于class path resource [spring/ApplicationContext-springmvc.xml] cannot be opened because it does not e的主要内容,如果未能解决你的问题,请参考以下文章

单点登录-----遇到问题-----FileNotFoundException: class path resource-UsernamePasswordWrapperAuthenticatio(代码

异常IOException parsing XML document from class path resource [xxx.xml]

Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource...

Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource...

SpringBoot Error creating bean with name 'dataSource' defined in class path resource。。。

报错 Error creating bean with name ‘elasticsearchTemplate‘ defined in class path resource