Q: Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [xxx.xml]
A: 方法有几种:
1)Project > properties > Deployment Assembly > 添加Spring 的一堆包;
2)或者,把已有Spring 包的项目作为前置项目,也是在Project > properties > Deployment Assembly中,添加项目即可;
3)Spring有可能还需一些前置包,也一并加进来。
本文介绍了解决Spring框架中XML配置文件加载时出现的BeanDefinitionStoreException异常的方法。主要包括三种方案:通过项目的部署设置引入Spring相关包、将已包含Spring包的项目设置为依赖项目、以及添加Spring所需的其他前置依赖包。
3042

被折叠的 条评论
为什么被折叠?



