您的位置:首页 > 其它

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

2015-11-07 11:46 330 查看


在写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">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: