【fix sonar】DynamicDBUtil文件
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ public class DynamicDBUtil {
|
||||
return cacheDbSource;
|
||||
} else {
|
||||
DruidDataSource dataSource = getJdbcDataSource(dbSource);
|
||||
if(dataSource!=null && dataSource.isEnable()){
|
||||
if(dataSource.isEnable()){
|
||||
DataSourceCachePool.putCacheBasicDataSource(dbKey, dataSource);
|
||||
}else{
|
||||
throw new JeroBootException("动态数据源连接失败,dbKey:"+dbKey);
|
||||
|
||||
Reference in New Issue
Block a user