1.连接mySql,文件配置如下:
/p>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
jdbc:mysql://localhost:3306/test
root
253503125
com.mysql.jdbc.Driver
org.hibernate.dialect.MySQLDialect
true
2.连接Oracle,文件配置如下:
/p>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
jdbc:oracle:thin:@192.168.7.248:1521:orcl
liferay
liferay
oracle.jdbc.driver.OracleDriver
org.hibernate.dialect.Oracle9Dialect
true
3.连接sqlServer,问津配置如下:
/p>
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
jdbc:sqlserver://192.168.7.199:1433;databaseName=xycms
sa
123456
com.microsoft.sqlserver.jdbc.SQLServerDriver
org.hibernate.dialect.SQLServerDialect
true