Hibernate学习总结----一、搭建Hibernate环境1.在src目录下创建hibernate.cfg.配置文件PS:文件的名字不能改!<??><!DOCTYPE hibernate-configuration PUBLIC "-/ ...
一、搭建Hibernate环境
1.在src目录下创建hibernate.cfg.配置文件
PS:文件的名字不能改!
<??><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory> <!-- configure the database setting --> <property name="connection.username">root</property> <property name="connection.password">1234</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://localhost:3306/test</property> <!-- configure the hibernate setting --> <!-- transaction is supported by org.hibernate.dialect.MySQL5InnoDBDialect --> <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:Hibernate详细教程
关键词:Hibernate
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。