WXingSong opened a new issue, #37103:
URL: https://github.com/apache/shardingsphere/issues/37103

   I use sharding-jdbc.
   I have configured the following data source configurations in YAML
   ```
   dataSources:
     ds0:
       dataSourceClassName: com.mysql.cj.jdbc.Driver
       driverClassName: com.mysql.cj.jdbc.Driver
       url: jdbc:mysql://127.0.0.1:3306/demo?serverTimezone=UTC&useSSL=false
       username: root
       password: 123456
       initialSize: 5
       maxActive: 20
       minIdle: 5
       maxWait: 60000
       testWhileIdle: true
       testOnBorrow: false
       testOnReturn: false
       timeBetweenEvictionRunsMillis: 60000
       minEvictableIdleTimeMillis: 300000
       validationQuery: SELECT 1
    ds1:
       dataSourceClassName: com.mysql.cj.jdbc.Driver
       driverClassName: com.mysql.cj.jdbc.Driver
       url: jdbc:mysql://127.0.0.1:3307/demo?serverTimezone=UTC&useSSL=false
       username: root
       password: 123456
       initialSize: 5
       maxActive: 20
       minIdle: 5
       maxWait: 60000
       testWhileIdle: true
       testOnBorrow: false
       testOnReturn: false
       timeBetweenEvictionRunsMillis: 60000
       minEvictableIdleTimeMillis: 300000
       validationQuery: SELECT 1
   ```
   the log output:testWhileIdle is true, validationQuery not set.
   This means that the configuration is unavailable.
   
   my druid version is 1.2.27
   ```
   <dependency>
                   <groupId>com.alibaba</groupId>
                   <artifactId>druid-spring-boot-starter</artifactId>
                   <version>1.2.27</version>
    </dependency>
   ```


-- 
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