Explorar o código

新增druid配置

codingliang hai 3 meses
pai
achega
3b89886750
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/main/resources/application-prod.yml

+ 4 - 0
src/main/resources/application-prod.yml

@@ -19,6 +19,10 @@ spring:
             test-while-idle: true
             test-on-borrow: false
             test-on-return: false
+            default-auto-commit: true
+            remove-abandoned: true
+            remove-abandoned-timeout: 30
+            log-abandoned: true
             stat-view-servlet:
                 enabled: true
                 url-pattern: /druid/*