mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
commit
14e1591f73
@ -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() {
|
||||
|
||||
@ -16,13 +16,13 @@ spring:
|
||||
mybatis-flex:
|
||||
mapper-locations:
|
||||
- classpath*:/mapper/*.xml
|
||||
global-config:
|
||||
print-banner: false
|
||||
key-config:
|
||||
key-type: generator
|
||||
value: uuid
|
||||
configuration:
|
||||
use-generated-keys: true
|
||||
# global-config:
|
||||
# print-banner: false
|
||||
# key-config:
|
||||
# key-type: generator
|
||||
# value: uuid
|
||||
# configuration:
|
||||
# use-generated-keys: true
|
||||
# datasource:
|
||||
# data-center:
|
||||
# url: jdbc:mysql://localhost:3306/flex_test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user