willjava

导航

 

hibernate.cfg.xml:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
    
<hibernate-configuration>
<session-factory>
    <property name="hibernate.connection.driver">
        com.mysql.jdbc.Driver
    </property>
    <property name="hibernate.connection.username">root</property>
    <property name="hibernate.connection.password">admin</property>
    <property name="hibernate.connection.url">
        jdbc:mysql://localhost:3306/maven_user
    </property>
    <property name="show_sql">true</property>
    <property name="hbm2ddl.auto">update</property>
    <mapping class="com.zwh.user.vo.User"/>
</session-factory>
</hibernate-configuration>

 

posted on 2014-03-29 00:25  威尔爪哇  阅读(100)  评论(0)    收藏  举报