在web.xml增加如下代码,看看
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/config/applicationContext.xml</param-value>
</context-param> <servlet>
<servlet-name>SpringContextServlet</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>   
<load-on-startup>1</load-on-startup>
</servlet>

解决方案 »

  1.   

    我也是报同样的错,test.xml文件放在WEB-INF下了,报如下错:
    异常信息: IOException parsing XML document from file [E:\java\eclipse\xml\test.xml]; nested exception is java.io.FileNotFoundException: xml\test.xml (系统找不到指定的路径。)
    异常信息: xml\test.xml (系统找不到指定的路径。)
    at java.io.FileInputStream.open(Native Method)怎么要找到eclipse路径下去了?奇怪!
      

  2.   

    需要指明详细的路径,如/WEB-INF/config/applicationContext.xml
      

  3.   

    up我按照 rice139301(大米) 说的来做,还是没有解决
    郁闷阿