mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: 不配置全局设置时发生 NPE 问题。
This commit is contained in:
parent
bfc6766d08
commit
e35a45fdeb
@ -133,7 +133,9 @@ public class MybatisFlexAutoConfiguration implements InitializingBean {
|
||||
// 检测 MyBatis 原生配置文件是否存在
|
||||
checkConfigFileExists();
|
||||
// 添加 MyBatis-Flex 全局配置
|
||||
this.properties.getGlobalConfig().applyTo(FlexGlobalConfig.getDefaultConfig());
|
||||
if (properties.getGlobalConfig() != null) {
|
||||
properties.getGlobalConfig().applyTo(FlexGlobalConfig.getDefaultConfig());
|
||||
}
|
||||
}
|
||||
|
||||
private void checkConfigFileExists() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user