您的位置:首页 > 其它

Hibernate自动生成映射文件有错误Error creating bean with name 'sessionFactory' defined in class path resource

2018-12-26 10:37 621 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/weixin_43512326/article/details/85258198

1.Error creating bean with name ‘sessionFactory’ defined in class path resource [conf/app-resource.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream。
2.Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
3.Caused by: org.dom4j.DocumentException: Connection refused: connect Nested exception: Connection refused: connect

注意hibernate生成的XXX.hbm.xml生成的版本


把Mapping DTO 2.0 ,hibernate-mapping-2.0 改成3.0

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐