Support databaseId .
https://github.com/baomidou/mybatis-plus/issues/5746
This commit is contained in:
parent
7493bd3dff
commit
44575af46e
@ -1,4 +1,4 @@
|
|||||||
APP_VERSION=3.5.4.1
|
APP_VERSION=3.5.5-SNAPSHOT
|
||||||
APP_GROUP=com.baomidou
|
APP_GROUP=com.baomidou
|
||||||
signing.keyId=1FD337F9
|
signing.keyId=1FD337F9
|
||||||
signing.password=243194995
|
signing.password=243194995
|
||||||
|
@ -338,6 +338,8 @@ public class MybatisPlusProperties {
|
|||||||
// 新增兼容开始...
|
// 新增兼容开始...
|
||||||
private Class<? extends LanguageDriver> defaultScriptingLanguageDriver;
|
private Class<? extends LanguageDriver> defaultScriptingLanguageDriver;
|
||||||
|
|
||||||
|
protected String databaseId;
|
||||||
|
|
||||||
public void applyTo(Configuration target) {
|
public void applyTo(Configuration target) {
|
||||||
PropertyMapper mapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
PropertyMapper mapper = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
||||||
mapper.from(getSafeRowBoundsEnabled()).to(target::setSafeRowBoundsEnabled);
|
mapper.from(getSafeRowBoundsEnabled()).to(target::setSafeRowBoundsEnabled);
|
||||||
@ -372,6 +374,7 @@ public class MybatisPlusProperties {
|
|||||||
mapper.from(getConfigurationFactory()).to(target::setConfigurationFactory);
|
mapper.from(getConfigurationFactory()).to(target::setConfigurationFactory);
|
||||||
mapper.from(getDefaultEnumTypeHandler()).to(target::setDefaultEnumTypeHandler);
|
mapper.from(getDefaultEnumTypeHandler()).to(target::setDefaultEnumTypeHandler);
|
||||||
mapper.from(getDefaultScriptingLanguageDriver()).to(target::setDefaultScriptingLanguage);
|
mapper.from(getDefaultScriptingLanguageDriver()).to(target::setDefaultScriptingLanguage);
|
||||||
|
mapper.from(getDatabaseId()).to(target::setDatabaseId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user