关于网友提出的“ Spring中读取配置文件时 报错 哪个高手来解决下”问题疑问,本网通过在网上对“ Spring中读取配置文件时 报错 哪个高手来解决下”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: Spring中读取配置文件时 报错 哪个高手来解决下
描述: javax.servlet.ServletException: IOException parsing XML document from file [C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\src\applicationContext.xml]; nested exception is java.io.FileNotFoundException: src\applicationContext.xml (系统找不到指定的路径。)
我确定applicationContext.xml 的路径是正确的(项目名→src→applicationContext.xml)
ApplicationContext ctx = new FileSystemXmlApplicationContext(
"/src/applicationContext.xml");
谁知道怎么回事啊~! 郁闷了1下午了
以上介绍了“ Spring中读取配置文件时 报错 哪个高手来解决下”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3344638.html