Browse Source

Merge branch 'dev_screen_data' into dev_temp

master
wxz 5 years ago
parent
commit
4d520acd1e
  1. 4
      epmet-commons/epmet-commons-dynamic-datasource/src/main/java/com/epmet/commons/dynamic/datasource/config/DynamicDataSource.java

4
epmet-commons/epmet-commons-dynamic-datasource/src/main/java/com/epmet/commons/dynamic/datasource/config/DynamicDataSource.java

@ -24,7 +24,9 @@ public class DynamicDataSource extends AbstractRoutingDataSource {
@Override
protected Object determineCurrentLookupKey() {
return DynamicContextHolder.peek();
String ds = DynamicContextHolder.peek();
logger.info("动态数据源:{}" + ds);
return ds;
}
}

Loading…
Cancel
Save