无法读取配置文件org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">。
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.url">
<![CDATA[
jdbc:mysql://localhost:3306/imooc?useUnicode=true&characterEncoding=utf8
]]>
</property>
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">update</property>
<!-- 指定映射文件的路径 -->
<mapping resource="com/imooc/entity/Grade.hbm.xml"/>
<mapping resource="com/imooc/entity/Student.hbm.xml"/>
</session-factory>
</hibernate-configuration>