Don't use old DTDs, read the Hibernate 3.x Migration Guide
使用Hibernate3进行开发,但是那些mapping的xml文件是用middlegen2.x.x生成的,所以在运行程序的时候报上面的错误
查下hibernate官方文档http://www.hibernate.org/250.html#A21 发现只需把DTD文件换个就行了
具体解决:
Change http://hibernate .sourceforge.net/hibernate -mapping-2.0.dtd to http://hibernate .sourceforge.net/hibernate -mapping-3.0.dtd in the DOCTYPE
相关资源:敏捷开发V1.0.pptx