zoukankan      html  css  js  c++  java
  • 各种数据库连接配置

    http://blog.csdn.net/laukicn/article/details/55096101

    #######################  DB Connection Config  #######################


    ###----------------- DB Type -----------------
    #the database of the application:mysql|sqlserver|oracle
    databaseType=mysql
    #databaseType=sqlserver
    #databaseType=oracle


    ###----------------- MySQL5+ -----------------
    jdbc.driverClassName=com.mysql.jdbc.Driver
    jdbc.url=jdbc:mysql://192.168.1.253:3306/ssh_annotaction?useUnicode=true&characterEncoding=utf-8
    jdbc.username=root
    jdbc.password=123456
    hibernate.dialect=org.hibernate.dialect.MySQLDialect


    ###----------------- SqlServer2005+ -----------------
    #jdbc.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
    #jdbc.url=jdbc:sqlserver://localhost:1433;DatabaseName=sampledb
    #jdbc.username=sa
    #jdbc.password=123456
    #hibernate.dialect=org.hibernate.dialect.SQLServerDialect


    ###----------------- Oracle10g+ -----------------
    #jdbc.driverClassName=oracle.jdbc.driver.OracleDriver
    #jdbc.url=jdbc:oracle:thin:@localhost:1521:orac10g
    #jdbc.username=scott
    #jdbc.password=scott123
    #hibernate.dialect=org.hibernate.dialect.OracleDialect


    ###----------------- JNDI -----------------
    #jndi.name=myjndi123


    ###----------------- Hibernate -----------------
    hibernate.show_sql=true
    hibernate.format_sql=true
    hibernate.hbm2ddl.auto=update
    hibernate.jdbc.fetch_size=100
    hibernate.jdbc.batch_size=20

    hibernate.cache.use_second_level_cache=true
    hibernate.cache.use_query_cache=true
    hibernate.memcached.cacheTimeSeconds=10800
    #Hibernate4
    hibernate.cache.region.factory_class=org.hibernate.cache.EhCacheRegionFactory
    #Hibernate3
    #hibernate.cache.region.factory_class=org.hibernate.cache.EhCacheProvider


    ###----------------- C3P0 -----------------
    c3p0.maxPoolSize=50
    c3p0.minPoolSize=1
    c3p0.initialPoolSize=1
    c3p0.maxIdleTime=20


    ###----------------- DBCP -----------------
    dbcp.maxActive=50
    dbcp.maxIdle=50
    dbcp.minIdle=1
    dbcp.maxWait=10000
    dbcp.initialSize=1

  • 相关阅读:
    javascript UniqueID属性
    java中接口的定义与实现
    HPUX平台经常使用命令列举
    Vim简明教程【CoolShell】
    ztree使用系列三(ztree与springmvc+spring+mybatis整合实现增删改查)
    void及void指针含义的深刻解析
    IE无法打开internet网站已终止操作的解决的方法
    Ubuntu下安装eclipse
    codeforces 444 C. DZY Loves Colors(线段树)
    Surface、SurfaceView、SurfaceHolder及SurfaceHolder.Callback之间的关系
  • 原文地址:https://www.cnblogs.com/lxh520/p/7966216.html
Copyright © 2011-2022 走看看