Browse Source

set the validationQuery while testWhileIdle is true (#1827)

xiayuan 6 years ago
parent
commit
4075a0623f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      deployer/src/main/resources/spring/tsdb/h2-tsdb.xml

+ 1 - 0
deployer/src/main/resources/spring/tsdb/h2-tsdb.xml

@@ -43,6 +43,7 @@
         <property name="testOnBorrow" value="false" />
         <property name="testOnBorrow" value="false" />
         <property name="testOnReturn" value="false" />
         <property name="testOnReturn" value="false" />
         <property name="useUnfairLock" value="true" />
         <property name="useUnfairLock" value="true" />
+        <property name="validationQuery" value="SELECT 1" />
 	</bean>
 	</bean>
 
 
     <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
     <bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">