|
@@ -8,18 +8,30 @@ spring:
|
|
|
thymeleaf:
|
|
|
cache: false
|
|
|
datasource:
|
|
|
-# url: jdbc:jtds:sqlserver://172.16.32.179:1433/thxyhisdb
|
|
|
- url: jdbc:jtds:sqlserver://172.16.32.168:1433/thxyhisdb
|
|
|
- hikari:
|
|
|
- username: sa
|
|
|
- password:
|
|
|
- minimum-idle: 5
|
|
|
- idle-timeout: 180000
|
|
|
- maximum-pool-size: 8
|
|
|
- auto-commit: true
|
|
|
- pool-name: MyHikariCP
|
|
|
- connection-timeout: 30000
|
|
|
- connection-test-query: select 1
|
|
|
+ url: jdbc:sqlserver://172.16.32.168:1433;databaseName=thxyhisdb
|
|
|
+ username: sa
|
|
|
+ password:
|
|
|
+ driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ durid:
|
|
|
+ initial-size: 10
|
|
|
+ max-active: 40
|
|
|
+ min-idle: 10
|
|
|
+ max-wait: 60000
|
|
|
+ validation-query: SELECT 1
|
|
|
+ test-while-idle: true
|
|
|
+ test-on-borrow: false
|
|
|
+ test-on-return: false
|
|
|
+ time-between-eviction-runs-millis: 60000
|
|
|
+ min-evictable-idle-time-millis: 300000
|
|
|
+ filters: stat
|
|
|
+ pool-prepared-statements: false
|
|
|
+ max-pool-prepared-statement-per-connection-size: 200
|
|
|
+ remove-abandoned: true
|
|
|
+ remove-abandoned-timeout: 180
|
|
|
+ log-abandoned: true
|
|
|
+ autoconfigure:
|
|
|
+ exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 去除druid配置
|
|
|
jackson:
|
|
|
time-zone: GMT+8
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|