/p>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
jdbc:sqlserver://192.168.63.117:1433;databaseName=test
sa
123456
com.microsoft.sqlserver.jdbc.SQLServerDriver
org.hibernate.dialect.SQLServerDialect
true
2、连接MySQL
/p>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
jdbc:mysql://localhost:3306/test
sa
123456
com.mysql.jdbc.Driver
org.hibernate.dialect.MySQLDialect
true
3、连接Oracle
/p>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
jdbc:oracle:thin:@192.168.63.117:1433:orcl
sa
123456
oracle.jdbc.driver.OracleDriver
org.hibernate.dialect.Oracle9Dialect
true
hibernate.cfg.xml 配置SQL server,MySQL,Oracle
标签:edr user tab word span base actor 配置 连接
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉
本文系统来源:https://www.cnblogs.com/rozen-lin/p/12559307.html