ssh整合配置文件出现了一个问题(配置文件的位置问题,导致我不能访问,不明白)

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [configs/applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [configs/applicationContext.xml] cannot be opened because it does not exist
图片说明applicationContext文件的位置。
如果这样,我就访问不到

contextConfigLocation
classpath:configs/springmvc.xml

    去掉configs,我就能访问的到。。
    这是为什么呢

应该是相对路径的问题 你试试 ../configs/springmvc.xml

会不会是有二个appliationcontent.xml了

或者说路径问题,上面那个大哥一样改一下试试

可以去部署后的tomcat里看看,有可能是之前的文件一直还在tomcat里部署着,要clean整个项目,再试试。eclipse经常这样

查询下项目的输出目录,

http://www.cnblogs.com/ys-wuhan/p/5800247.html

你去webapps目录下看看,部署到tomcat之后是没有src和configs目录的,都在classes下