【7.0.4】【db】修复一个判断错误

pull/17/head^2
fengshuonan 2021-05-21 15:44:00 +08:00
parent acdcc1d4f1
commit 50c54dab5a
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class DruidDatasourceFactory {
dataSource.setMaxPoolPreparedStatementPerConnectionSize(druidProperties.getMaxPoolPreparedStatementPerConnectionSize());
// 检测连接是否有效的sql
if (StrUtil.isEmpty(druidProperties.getUrl())) {
if (StrUtil.isNotEmpty(druidProperties.getUrl())) {
dataSource.setValidationQuery(getValidateQueryByUrl(druidProperties.getUrl()));
}