日期:2014-05-16 浏览次数:20471 次
?
??一、Hibernate与mysql的连接
<!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">