java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/action-servlet.xml]

严重: Context initialization failed

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]


原因是找不到  applicationContext.xml


解决办法  

 
 
  contextConfigLocation
  WebRoot/WEB-INF/lib/applicationContext.xml
 

改为

 
 
  contextConfigLocation
  /WEB-INF/lib/applicationContext.xml
 



你可能感兴趣的:(java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/action-servlet.xml])