perf(controller):去掉之前mysql数据源,合成一个;多service与configSourcesController 去掉无用信息

This commit is contained in:
doufenghu
2018-07-17 18:16:49 +08:00
parent 9552bdc05f
commit 071f68ad51
7 changed files with 330 additions and 349 deletions

View File

@@ -15,9 +15,9 @@ public class DataSourceAInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
logger.info("开启数据源日志操作库---" + System.currentTimeMillis());
logger.debug("开启数据源DATA_SOURCE_A---" + System.currentTimeMillis());
CustomerContextHolder.setCustomerType(CustomerContextHolder.DATA_SOURCE_A);// 开启数据源A
logger.info("日志数据源开启成功---" + System.currentTimeMillis());
logger.debug("数据DATA_SOURCE_A源开启成功---" + System.currentTimeMillis());
return true;
}