rmzf9192 commented on issue #13433:
URL: 
https://github.com/apache/shardingsphere/issues/13433#issuecomment-960360528


   #################################### spring配置   start  
####################################
   spring:
     main:
       allow-bean-definition-overriding: true
     shardingsphere:
       dataSource:
         names: yst-yym    
         yst-yym:
           type: com.zaxxer.hikari.HikariDataSource
           driver-class-name: com.mysql.jdbc.Driver
           jdbcUrl: XXXX
           username: XXXX
           password: XXXXX
           # 初始化连接池超时时间
           initializationFailTimeout: 60000
           # 等待从连接池中获取连接的时间,毫秒
           connectionTimeout: 20000
           # 连接池最大连接数
           maximumPoolSize: 200
           # 泄露检测的时间间隔(距离从连接池离开)
           leakDetectionThreshold: 6000
           # 连接池最小数量
           minimumIdle: 50
       props:
         sql:
           show: true
         max:
           connections:
             size:
               per:
                 query: 50


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to