hfxc226 3 жил өмнө
parent
commit
9f3a3093ac

+ 29 - 0
platform-dao/src/main/resources/application-daoProd.yml

@@ -59,6 +59,35 @@ spring:
         #间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
         time-between-eviction-runs-millis: 60000
         validation-query: SELECT 'x'
+      qykh:
+        driver-class-name: com.mysql.cj.jdbc.Driver
+        url: jdbc:mysql://139.159.196.89:33306/qykh?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
+        username: qykh
+        password: qykh@CQDWJS@!123
+        filters: wall,stat
+        filter:
+          stat:
+            log-slow-sql: true
+            #慢sql
+            slow-sql-millis: 1000
+        #初始化大小、最小、最大
+        initial-size: 1
+        max-active: 50
+        max-pool-prepared-statement-per-connection-size: 20
+        #获取连接等待超时的时间
+        max-wait: 60000
+        #一个连接在池中最小生存的时间,单位是毫秒
+        min-evictable-idle-time-millis: 300000
+        min-idle: 5
+        #打开PSCache,并且指定每个连接上PSCache的大小
+        #如果用Oracle,则把poolPreparedStatements配置为true,mysql可以配置为false。分库分表较多的数据库,建议配置为false。
+        pool-prepared-statements: false
+        test-on-borrow: true
+        test-on-return: true
+        test-while-idle: true
+        #间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+        time-between-eviction-runs-millis: 60000
+        validation-query: SELECT 'x'
       stat-view-servlet:
         login-password: platform8888
         login-username: root

+ 32 - 0
platform-dao/src/main/resources/application-daoTest.yml

@@ -62,6 +62,38 @@ spring:
         #间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
         time-between-eviction-runs-millis: 60000
         validation-query: SELECT 'x'
+      qykh:
+        driver-class-name: com.mysql.cj.jdbc.Driver
+        url: jdbc:mysql://139.159.196.89:33306/qykh?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
+        username: qykh
+        password: qykh@CQDWJS@!123
+        filters: wall,stat
+        filter:
+          stat:
+            log-slow-sql: true
+            #慢sql
+            slow-sql-millis: 1000
+        #初始化大小、最小、最大
+        initial-size: 1
+        max-active: 50
+        max-pool-prepared-statement-per-connection-size: 20
+        #获取连接等待超时的时间
+        max-wait: 60000
+        #一个连接在池中最小生存的时间,单位是毫秒
+        min-evictable-idle-time-millis: 300000
+        min-idle: 5
+        #打开PSCache,并且指定每个连接上PSCache的大小
+        #如果用Oracle,则把poolPreparedStatements配置为true,mysql可以配置为false。分库分表较多的数据库,建议配置为false。
+        pool-prepared-statements: false
+        test-on-borrow: true
+        test-on-return: true
+        test-while-idle: true
+        #间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+        time-between-eviction-runs-millis: 60000
+        validation-query: SELECT 'x'
+        stat-view-servlet:
+          login-password: platform8888
+          login-username: root
       stat-view-servlet:
         login-password: platform8888
         login-username: root