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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_31279347/article/details/82729897
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>

猜你喜欢

转载自blog.csdn.net/qq_31279347/article/details/82729897
今日推荐