You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static void initEtDataSourceManager() {
DefaultResourceManager.get();
DefaultResourceManager.mockResourceManager(BranchType.AT, new EtDataSourceManager());
LOGGER.info("Trigger EtSeataDataSourceManager init!");
}
由于使用了DefaultResourceManager.mockResourceManager(BranchType.AT, new EtDataSourceManager());,因此
EtDataSourceManager从父类的dataSourceCache获取DataSourceProxy时为空.
Describe the bug
EtDataSourceManager类代码79行,DataSourceProxy dataSourceProxy = get(resourceId); dataSourceProxy为null
EtDataSourceManager的静态方法初始化时没有把 DataSourceProxy注册到EtDataSourceManager
由于使用了DefaultResourceManager.mockResourceManager(BranchType.AT, new EtDataSourceManager());,因此
EtDataSourceManager从父类的dataSourceCache获取DataSourceProxy时为空.
应该需要将DataSourceProxy资源再次注入到EtDataSourceManager。我试着改为如下方式可用
我看issue之前有人提出过这个问题,希望能得到解决
The text was updated successfully, but these errors were encountered: