天书夜读

仁者不忧,知者不惑,勇者不惧。

【配置文件】MySQL的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="myeclipse.connection.profile">mysql</property>  
        <property name="connection.url">  
            jdbc:mysql://localhost:3306/test   
        </property>  
        <property name="connection.username">root</property>  
        <property name="connection.password">admin</property>  
        <property name="connection.driver_class">  
            com.mysql.jdbc.Driver   
        </property>  
        <property name="dialect">  
            org.hibernate.dialect.MySQLDialect   
        </property>  
        <property name="show_sql">true</property>  
        <property name="transaction.factory_class">net.sf.hibernate.transaction.JDBCTransactionFactory</property>  
        <mapping resource="User.hbm.xml" />  
  
    </session-factory>  
  
</hibernate-configuration> 


阅读更多
上一篇【url】The reference to entity &quot;characterEncoding&quot; must end with the ';' delimiter
下一篇【asm】java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭