Skip to content

Commit

Permalink
Revert "use custom connection validator instead of sending SELECT 1 q…
Browse files Browse the repository at this point in the history
…uery"

This reverts commit f6816a2.
  • Loading branch information
nobodyiam committed Jun 16, 2017
1 parent 7ffe731 commit 52eea5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.

This file was deleted.

3 changes: 1 addition & 2 deletions apollo-common/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ spring.http.converters.preferred-json-mapper=gson
# DataSource
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=true
spring.datasource.validatorClassName=com.ctrip.framework.apollo.common.utils.DataSourceValidator
spring.datasource.validationInterval=5000
spring.datasource.validationQuery=SELECT 1
spring.datasource.initSQL=set names utf8mb4

# Naming strategy
Expand Down

0 comments on commit 52eea5c

Please sign in to comment.