Explorar el Código

新增druid配置

codingliang hace 3 meses
padre
commit
3b89886750
Se han modificado 1 ficheros con 4 adiciones y 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/*