请大家帮助!!!!
7 个解决方案
#1
WEB-INF
#2
楼上得说清楚一些,谢谢
#3
顶啊
#4
在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>
<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>
#5
我也是报同样的错,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路径下去了?奇怪!
异常信息: 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路径下去了?奇怪!
#6
需要指明详细的路径,如/WEB-INF/config/applicationContext.xml
#7
up
我按照 rice139301(大米) 说的来做,还是没有解决
郁闷阿
我按照 rice139301(大米) 说的来做,还是没有解决
郁闷阿
#1
WEB-INF
#2
楼上得说清楚一些,谢谢
#3
顶啊
#4
在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>
<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>
#5
我也是报同样的错,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路径下去了?奇怪!
异常信息: 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路径下去了?奇怪!
#6
需要指明详细的路径,如/WEB-INF/config/applicationContext.xml
#7
up
我按照 rice139301(大米) 说的来做,还是没有解决
郁闷阿
我按照 rice139301(大米) 说的来做,还是没有解决
郁闷阿