org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML 异常错误

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML 
document from class path resource [com/test/controller];
nested exception is java.io.FileNotFoundException:class path resource [com/test/controller] cannot be opened because it does not exist

解释:没有找配置文件为controller的xml,要确保路径写对,文件名写对。

<init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath:com/test/controller/config/springApplication.xml</param-value>
</init-param>
©️2020 CSDN 皮肤主题: 程序猿惹谁了 设计师:上身试试 返回首页