关于hibernate总是报错 配置factory的id找不到,mapping配置文件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"