bugfix
This commit is contained in:
@@ -20,6 +20,8 @@ public class OrderServiceStaticProxy {
|
||||
*/
|
||||
private IOrderService orderService = new IOrderServiceImpl();
|
||||
|
||||
private static final String DB = "db";
|
||||
|
||||
/**
|
||||
* 对源方法增强
|
||||
*
|
||||
@@ -35,7 +37,7 @@ public class OrderServiceStaticProxy {
|
||||
log.info("静态代理分配到【db{}】处理数据", dbRouter);
|
||||
|
||||
// 设置DataSource
|
||||
DataSourceContextHolder.setDBType(String.valueOf(dbRouter));
|
||||
DataSourceContextHolder.setDBType(DB + String.valueOf(dbRouter));
|
||||
|
||||
afterMethod();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user