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
相关文章推荐
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sqlSessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource
- Meavn 搭建项目遇到Error creating bean with name 'sessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Bug--Error creating bean with name 'sessionFactory' defined in class path resource [data_context.xml
- Intellij idea:Error creating bean with name 'sqlSessionFactory' defined in class path resource
- Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationCon
- Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocatio
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- FAQ(27):Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicatio
- ssm出现Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/applic