码迷,mamicode.com
首页 > 移动开发 > 详细

hibernate报错:could not parse mapping document from resource

时间:2015-08-12 21:14:21      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

  昨晚在自己电脑上搭建的ssh环境运行好好的,搭建成功的时候我还小兴奋了下,然后今天放到公司的电脑上去,直接给我报了个could not parse mapping document from resource,当时我那小心肝直接碎了,并且这个错误还让我改了几个小时,最后在http://blog.csdn.net/mydeman/article/details/6134820

发现了答案,*.hbm.xml中引用了错误的DTD文件路径“http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd”这个是需要联网才能运行的,公司电脑没网,所以不能解析这个配置文件,替换不联网的 http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd 就对啦

hibernate报错:could not parse mapping document from resource

标签:

原文地址:http://www.cnblogs.com/duoluomengxing/p/4725407.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!