|
|
@@ -1,23 +1,25 @@
|
|
|
spring:
|
|
|
datasource:
|
|
|
- type: org.apache.tomcat.jdbc.pool.DataSource
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
driverClassName: oracle.jdbc.OracleDriver
|
|
|
- url: jdbc:oracle:thin:@scope2015.oicp.net:1521:orcl
|
|
|
username: yd_test
|
|
|
password: select!#%@$^
|
|
|
- initial-size: 10
|
|
|
- max-active: 80
|
|
|
- min-idle: 10
|
|
|
- max-wait: 60000
|
|
|
- test-on-borrow: false
|
|
|
- test-on-return: false
|
|
|
- test-while-idle: true
|
|
|
- tomcat:
|
|
|
- time-between-eviction-runs-millis: 30000
|
|
|
- min-evictable-idle-time-millis: 30000
|
|
|
- test-while-idle: true
|
|
|
- max-active: 50
|
|
|
- validation-query: select 1 from dual
|
|
|
+ url: jdbc:oracle:thin:@scope2015.oicp.net:1521:orcl
|
|
|
+ initialSize: 10
|
|
|
+ maxActive: 80
|
|
|
+ minIdle: 10
|
|
|
+ maxWait: 60000
|
|
|
+ testOnBorrow: true
|
|
|
+ testOnReturn: false
|
|
|
+ testWhileIdle: true
|
|
|
+ validationQuery: SELECT 1 FROM DUAL
|
|
|
+ timeBetweenEvictionRunsMillis: 60000
|
|
|
+ minEvictableIdleTimeMillis: 300000
|
|
|
+ poolPreparedStatements: true
|
|
|
+ maxPoolPreparedStatementPerConnectionSize: 80
|
|
|
+ filters: stat
|
|
|
+ removeAbandoned: true
|
|
|
+ removeAbandonedTimeout: 1800
|
|
|
http:
|
|
|
encoding:
|
|
|
force: true
|