【fix sonar】DynamicDBUtil文件
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user