日期:2014-05-19  浏览次数:20738 次

Hibernate配置文件突然自己出问题了,找不到原因请大家帮忙
error提示:Referenced file contains errors (http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd).
刚写几个字儿就出问题了,后来撤销回原样还是出问题

配置文件部分代码:
XML code

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>

    <session-factory><!--
        <property name="show_sql">true</property>
        <property name="format_sql">true</property>-->
        <mapping class="com.webapp.model.businessobject.Users" />
        <mapping class="com.webapp.model.businessobject.Attributes" />
        <mapping class="com.webapp.model.businessobject.Actions" />
        <mapping class="com.webapp.model.businessobject.Roles" />
        <mapping class="com.webapp.model.businessobject.RolesUsers" />
        <mapping class="com.webapp.model.businessobject.AddressGroup" />
        <mapping class="com.webapp.model.businessobject.Models" />
        <mapping class="com.webapp.model.businessobject.Teams" />
        <mapping class="com.webapp.model.businessobject.TeamsUsers" />
    </session-factory>
</hibernate-configuration>



------解决方案--------------------
引用文件有错误!
dtd的问题?
------解决方案--------------------
你的配置文件里和数据库相关的配置属性呢?