Unable to connect to host: 上网试试。

解决方案 »

  1.   

    http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd这个页面也能打开的
      

  2.   

    有这个文件吗?
    net/sf/hibernate/examples/quickstart/Customer/Customer.hbm.xml
      

  3.   

    请测试:
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
    <hibernate-mapping>
        <class name="net.sf.hibernate.examples.quickstart.Customer" table="CUSTOMER">
            <id name="id" column="CID">
                <generator class="increment" />
            </id>
            <property name="username" column="USERNAME" />
            <property name="password" column="PASSWORD" />
        </class>
    </hibernate-mapping><!--注释部分最好不在dtd下面-->