• 各种数据库连接配置


    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

  • 相关阅读:
    【六道无鱼】ExifTool编辑修改图片GPS
    【Elastic】Filebeat+ELK日志收集分析方案
    【Cesium】鹰眼地图功能
    【Cesium】3dtiles模型单体化
    【PHP】Version 7.2.13 报错 Fatal error: Call to undefined function curl_init()解决方案
    【ODM】win10 安装 webODM
    【数据库】mysql 删除多个关联的表
    【ElasticSearch】win10 安装elasticSearch 6.6.1
    【Cesium】视域分析 基于3dtiles做的视域分析
    缕清思路,继续前行
  • 原文地址:https://www.cnblogs.com/lxh520/p/7966216.html
Copyright © 2020-2023  润新知