1. 程式人生 > >Could not open ServletContext resource [/WEB-INF/applicationContext.xml] 異常

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

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

原因:掃描不到有applicationContext有contextConfigLocation引數,指引不到springmvc關鍵管家檔案

解決:

<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/spring-servlet.xml,/WEB-INF/spring-hibernate.xml,/WEB-INF/spring-automaticJob.xml
        </param-value>
    </context-param>
     加入所有的相關的spring.xml檔案

我的問題得到解決