Skip to content

Commit 52eea5c

Browse files
committed
Revert "use custom connection validator instead of sending SELECT 1 query"
This reverts commit f6816a2.
1 parent 7ffe731 commit 52eea5c

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/DataSourceValidator.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

apollo-common/src/main/resources/application.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ spring.http.converters.preferred-json-mapper=gson
33
# DataSource
44
spring.datasource.testWhileIdle=true
55
spring.datasource.testOnBorrow=true
6-
spring.datasource.validatorClassName=com.ctrip.framework.apollo.common.utils.DataSourceValidator
7-
spring.datasource.validationInterval=5000
6+
spring.datasource.validationQuery=SELECT 1
87
spring.datasource.initSQL=set names utf8mb4
98

109
# Naming strategy

0 commit comments

Comments
 (0)