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

在写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">
原文地址:https://www.cnblogs.com/com-wushuang/p/4944779.html