mirror of https://gitee.com/stylefeng/roses
【7.0.4】【db】修复一个判断错误
parent
acdcc1d4f1
commit
50c54dab5a
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue