123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- spring:
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
-
- master:
- url: jdbc:dm://localhost:5236?schema=LIU_TONG_YI&compatibleMode=oracle
- username: SYSDBA
- password: 123456789
-
- validationQuery: SELECT 1 FROM DUAL
-
- slave:
-
- enabled: true
- url: jdbc:sqlserver://localhost:1433;DatabaseName=test
- username: sa
- password: 123456
-
- validationQuery: SELECT 1
-
- slave-two:
-
- enabled: true
- url: jdbc:sqlserver://localhost:1433;DatabaseName=test
- username: sa
- password: 123456
-
- validationQuery: SELECT 1
-
- initialSize: 5
-
- minIdle: 10
-
- maxActive: 20
-
- maxWait: 60000
-
- connectTimeout: 30000
-
- socketTimeout: 60000
-
- timeBetweenEvictionRunsMillis: 60000
-
- minEvictableIdleTimeMillis: 300000
-
- maxEvictableIdleTimeMillis: 900000
- validationQuery: SELECT 1
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- webStatFilter:
- enabled: true
- statViewServlet:
- enabled: true
-
- allow:
- url-pattern: /druid/*
-
- login-username: dccdc
- login-password: ^YHN7ujm
- filter:
- stat:
- enabled: true
-
- log-slow-sql: true
- slow-sql-millis: 1000
- merge-sql: true
- wall:
- config:
- multi-statement-allow: true
|