techhero-component-task-test.yml 1.14 KB
Newer Older
CnNoter committed
1 2
datasource:
    #本地环境
3
    url: jdbc:oracle:thin:@192.168.0.102:1521:orcl
CnNoter committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
    driver-class-name: oracle.jdbc.OracleDriver
    username: tasktestv1
    password: tasktestv1
    initialSize: 5                                  #初始化提供的连接数
    minIdle: 5                                      #数据库连接池的最小维持连接数
    maxActive: 20                                   #最大的连接数
    maxWait: 60000
    timeBetweenEvictionRunsMillis: 60000            #空闲时间超过minEvictableIdleTimeMillis的连接则释放
    minEvictableIdleTimeMillis: 300000              #等待连接获取的最大超时时间
    validationQuery: SELECT 1 FROM DUAL             #启动开启检查连接性
    filters: stat,slf4j                             #监控配置
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000  # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    useGlobalDataSourceStat: true                   # 合并多个DruidDataSource的监控数据
    filter:
      commons-log:
        statement-log-enabled: true
        statement-executable-sql-log-enable: true