Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

来源:互联网 发布:如何求矩阵的伴随矩阵 编辑:程序博客网 时间:2024/05/07 05:46

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

.............................

Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

去web.xml里面一看,忘了配applicationContext.xml的路径了

  <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath:applicationContext.xml</param-value>
  </context-param>

原创粉丝点击