hibernate.cfg.xml
Posted 方少520
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hibernate.cfg.xml相关的知识,希望对你有一定的参考价值。
<?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="dialect">org.hibernate.dialect.mysqlDialect</property>
<property name="connection.url">jdbc:mysql://localhost:3306/cwgl</property>
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<mapping class="com.group.users.entity.Users"/>
</session-factory>
</hibernate-configuration>
以上是关于hibernate.cfg.xml的主要内容,如果未能解决你的问题,请参考以下文章