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

  • 相关阅读:
    scp 利用 ssh 协议 复制文件
    linux (fedora 28) 制作启动U盘,启动盘
    nc 命令使用详解
    env :让系统决定你命令的位置
    tali -f 和 tail -F 之间的区别
    斯诺克台球比赛规则 (Snooker)
    中式台球 规则 ( ChinaBilliards )
    美式九球比赛规则 (Nine-ball)
    Tmux 使用教程 on Fedora 28
    python 3.6 的 venv 模块
  • 原文地址:https://www.cnblogs.com/lxh520/p/7966216.html
Copyright © 2011-2022 走看看