连接池配置中配上:<property name="validationQuery" value="SELECT 1 FROM DUAL" />

相关文章: