set the validationQuery while testWhileIdle is true (#1827)

This commit is contained in:
xiayuan
2019-05-27 23:56:25 +08:00
committed by agapple
parent 37fc248ebf
commit 4075a0623f

View File

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