关于java: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.批改配置
本次谬误点:

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理