墨迹世界 2017-06-30 09:18 采纳率: 0%
浏览 1319

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,我就能访问的到。。
    这是为什么呢
  • 写回答

7条回答 默认 最新

  • Jsouzg 2017-06-30 09:46
    关注

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

    评论

报告相同问题?