我遇到异常 "Could not parse configuration"

I am getting exception "Could not parse configuration"

以下是我得到的异常的详细信息:

 Exception in thread "main" org.hibernate.HibernateException: Could not                              
         parse configuration:<br>
         <br> hibernate.cfg.xml<br><br>
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1491)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
         at com.javatpoint.mypackage.StoreData.main(StoreData.java:14)<br>
         Caused by: org.dom4j.DocumentException:Read timed out Nested exception: 
         Read timed out<br> <br>
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)<br>
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1481)
      <br>
       ... 2 more

这是hibernate.hbm.xml我编码的。我正在使用 MySQL 通过 XAMPP 作为后端。你能帮忙吗 解决这个? 'hr' 是我正在使用的数据库名称。用户名是 root.password留空。

  <!-- Generated by MyEclipse Hibernate Tools.                   -->
 <hibernate-configuration>  
 <session-factory>  
<property name="hbm2ddl.auto">update</property>  
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>  
<propertyname="connection.url">jdbc:mysql://localhost:3306/hr</property>  
<property name="connection.username">root</property>    
 <property name="connection.password"></property>    
<property 
name="connection.driver_class">com.mysql.jdbc.Driver</property>  
<mapping resource="employee.hbm.xml"/>  
</session-factory>  
</hibernate-configuration>  

您的 hibernate.cfg.xml 文件中有错字:标签名称 property 和属性名称 name 之间缺少 space。更改此行:

<propertyname="connection.url">jdbc:mysql://localhost:3306/hr</property>  

对此:

<property name="connection.url">jdbc:mysql://localhost:3306/hr</property>