【fix sonar】DynamicDBUtil文件

This commit is contained in:
梁琦涛
2023-03-08 12:01:16 +08:00
parent e58c75dd13
commit d57859dc1e
@@ -78,7 +78,7 @@ public class DynamicDBUtil {
return cacheDbSource; return cacheDbSource;
} else { } else {
DruidDataSource dataSource = getJdbcDataSource(dbSource); DruidDataSource dataSource = getJdbcDataSource(dbSource);
if(dataSource!=null && dataSource.isEnable()){ if(dataSource.isEnable()){
DataSourceCachePool.putCacheBasicDataSource(dbKey, dataSource); DataSourceCachePool.putCacheBasicDataSource(dbKey, dataSource);
}else{ }else{
throw new JeroBootException("动态数据源连接失败,dbKey"+dbKey); throw new JeroBootException("动态数据源连接失败,dbKey"+dbKey);