diff --git a/jdbc.properties b/jdbc.properties index e6a415b..ea657f3 100644 --- a/jdbc.properties +++ b/jdbc.properties @@ -18,7 +18,7 @@ #MySql hibernate.dialect=org.hibernate.dialect.MySQLDialect jdbc.driverClassName=com.mysql.jdbc.Driver -jdbc.url=jdbc:mysql://116.62.210.190:3306/guoyantest?autoReconnect=true&useUnicode=true&characterEncoding=UTF8&mysqlEncoding=utf8&zeroDateTimeBehavior=convertToNull +jdbc.url=jdbc:mysql://116.62.210.190:3306/guoyan?autoReconnect=true&useUnicode=true&characterEncoding=UTF8&mysqlEncoding=utf8&zeroDateTimeBehavior=convertToNull jdbc.username=root jdbc.password=Guoyan83086775 diff --git a/jdbc.test.properties b/jdbc.test.properties new file mode 100644 index 0000000..e6a415b --- /dev/null +++ b/jdbc.test.properties @@ -0,0 +1,46 @@ +#Db2 +#hibernate.dialect=org.hibernate.dialect.DB2Dialect +#jdbc.driverClassName=com.ibm.db2.jcc.DB2Driver +#jdbc.url=jdbc:db2://localhost:50000/eaching + +#Oracle +#hibernate.dialect=org.hibernate.dialect.Oracle10gDialect +#jdbc.driverClassName=oracle.jdbc.driver.OracleDriver +#jdbc.url=jdbc:oracle:thin:@47.99.208.214:1521:orcl +#jdbc.url=jdbc:oracle:thin:@118.190.161.36:1521:orcl + +#SqlServer +#hibernate.dialect=org.hibernate.dialect.SQLServerDialect +#jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver +#jdbc.url=jdbc:jtds:sqlserver://localhost:1433/guanwaimatou;SelectMethod=Cursor + + +#MySql +hibernate.dialect=org.hibernate.dialect.MySQLDialect +jdbc.driverClassName=com.mysql.jdbc.Driver +jdbc.url=jdbc:mysql://116.62.210.190:3306/guoyantest?autoReconnect=true&useUnicode=true&characterEncoding=UTF8&mysqlEncoding=utf8&zeroDateTimeBehavior=convertToNull + +jdbc.username=root +jdbc.password=Guoyan83086775 + +jdbc.maxConn=20 +jdbc.minConn=5 +jdbc.activeTime=900000 +jdbc.alias=eaching +jdbc.keepingSleepTime=30000 +jdbc.maxConnectionLifetime=60000 + +jdbc.multiSource=false + +hibernate.cache.use_second_level_cache=true +hibernate.show_sql=false +hibernate.generate_statistics=false +hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider +#hibernate.cache.provider_class=net.oschina.j2cache.hibernate3.J2CacheProvider +hibernate.cache.use_minimal_puts=true +hibernate.cache.use_structured_entries=true +hibernate.cache.use_query_cache=true +hibernate.use_sql_comments=trues +hibernate.order_updates=true +hibernate.format_sql=false +hbm2ddl.auto=create