您的位置:首页 > 其它

Error creating bean with name 'sessionFactory' defined in class path resource

2016-05-22 15:06 711 查看


Could not parse mapping document from input stream的解决办法  

Could not parse mapping document from input stream

Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

。。。。。。。。。。

Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org

解决办法:

Person.hbm.xml配置文件中,

"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">改为:

 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"

 转自:http://hi.baidu.com/dxjilu/item/3cf4310d2a1b23fda11034f3

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