WARN DTDEntityResolver:73 - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

警告DTDEntityResolver:73 -认可过时hibernate命名空间http://hibernate.sourceforge.net/。使用命名空间http://www.hibernate.org/dtd/。指Hibernate 3.6迁移指南!

解决办法:

1、检查所有***.hbm.xml文件,看看是不是有
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
更换为
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"

2、检查hibernate.cfg.xml文件,将
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
更换为

"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"

05-21 12:29