SSH集成错误:BeanCreationException: Error creating bean
文章目录
在做项目时遇到一个错误,记录一下。
错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [com/zking/ssh/book/entity/Dict.hbm.xml] cannot be opened because it does not exist
这个错误是因为xml有问题,在初始化spring上下文时初始化失败。
解决办法:
1.检查自己的配置文件是否有错。
2.修改配置
本次错误点:
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论