日期:2014-05-16  浏览次数:20462 次

hibernate于各大数据库的连接
?
??一、Hibernatemysql的连接
<!DOCTYPE hibernate-configuration PUBLIC
??? "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
??? "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
??? <session-factory>
??? <!-- 加载 数据驱动 -->
?????? <property name="hibernate.connection.driver_class">
?????????? com.mysql.jdbc.Driver
?????? </property>
?????? <!-- 配置数据的连接字符串 -->
?????? <property name="hibernate.connection.url">