mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
!505 mybatis-flex-solon-plugin 调整 FlexGlobalConfig:defaultConfig 的使用方式
Merge pull request !505 from 西东/main
This commit is contained in:
commit
e8a24973d7
@ -77,8 +77,15 @@ public class MybatisAdapterFlex extends MybatisAdapterDefault {
|
||||
|
||||
|
||||
//for globalConfig section
|
||||
globalConfig = new FlexGlobalConfig();
|
||||
globalConfig.setKeyConfig(new FlexGlobalConfig.KeyConfig());
|
||||
if (dsWrap.typed()) {
|
||||
globalConfig = FlexGlobalConfig.getDefaultConfig();
|
||||
} else {
|
||||
globalConfig = new FlexGlobalConfig();
|
||||
}
|
||||
|
||||
if (globalConfig.getKeyConfig() == null) {
|
||||
globalConfig.setKeyConfig(new FlexGlobalConfig.KeyConfig());
|
||||
}
|
||||
|
||||
Props globalProps = dsProps.getProp("globalConfig");
|
||||
if (globalProps.size() > 0) {
|
||||
@ -91,11 +98,6 @@ public class MybatisAdapterFlex extends MybatisAdapterDefault {
|
||||
|
||||
//增加事件扩展机制
|
||||
EventBus.publish(globalConfig);
|
||||
|
||||
|
||||
if (dsWrap.typed()) {
|
||||
FlexGlobalConfig.setDefaultConfig(globalConfig);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -132,5 +134,4 @@ public class MybatisAdapterFlex extends MybatisAdapterDefault {
|
||||
varH.setValue(rowMapperInvoker);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user