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

(转)hibernate.cfg.xml:The file cannot be validated as there was a connection problem

时间:2015-11-07 12:05:26      阅读:344      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

在写hibernate.cfg.xml的配置文件时,在文件的标头部分,会出现这个黄色感叹号,提示The file cannot be validated as there was a connection problem

即,因为连接问题不能通过验证,这样我们就无法使用eclipse的自动提示功能!解决的办法其实很简单,就是换个标头,换成即可

<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
       "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">

 

(转)hibernate.cfg.xml:The file cannot be validated as there was a connection problem

标签:

原文地址:http://www.cnblogs.com/com-wushuang/p/4944779.html

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