类 MybatisPlusProperties.CoreConfiguration
java.lang.Object
com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties.CoreConfiguration
The configuration properties for mybatis core module.
虽然为高版本新增开始,但为了美化配置提示,这里也在SpringBoot2上使用.
- 从以下版本开始:
- 3.0.0
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyTo(com.baomidou.mybatisplus.core.MybatisConfiguration target) org.apache.ibatis.session.AutoMappingBehaviororg.apache.ibatis.session.AutoMappingUnknownColumnBehaviorClass<?> Class<? extends org.apache.ibatis.type.TypeHandler> org.apache.ibatis.session.ExecutorTypeorg.apache.ibatis.mapping.ResultSetTypeClass<? extends org.apache.ibatis.scripting.LanguageDriver> Class<?> org.apache.ibatis.type.JdbcTypeorg.apache.ibatis.session.LocalCacheScopeClass<? extends org.apache.ibatis.logging.Log> Class<? extends org.apache.ibatis.io.VFS> setAggressiveLazyLoading(Boolean aggressiveLazyLoading) setArgNameBasedConstructorAutoMapping(Boolean argNameBasedConstructorAutoMapping) setAutoMappingBehavior(org.apache.ibatis.session.AutoMappingBehavior autoMappingBehavior) setAutoMappingUnknownColumnBehavior(org.apache.ibatis.session.AutoMappingUnknownColumnBehavior autoMappingUnknownColumnBehavior) setCacheEnabled(Boolean cacheEnabled) setCallSettersOnNulls(Boolean callSettersOnNulls) setConfigurationFactory(Class<?> configurationFactory) setDatabaseId(String databaseId) setDefaultEnumTypeHandler(Class<? extends org.apache.ibatis.type.TypeHandler> defaultEnumTypeHandler) setDefaultExecutorType(org.apache.ibatis.session.ExecutorType defaultExecutorType) setDefaultFetchSize(Integer defaultFetchSize) setDefaultResultSetType(org.apache.ibatis.mapping.ResultSetType defaultResultSetType) setDefaultScriptingLanguageDriver(Class<? extends org.apache.ibatis.scripting.LanguageDriver> defaultScriptingLanguageDriver) setDefaultSqlProviderType(Class<?> defaultSqlProviderType) setDefaultStatementTimeout(Integer defaultStatementTimeout) setJdbcTypeForNull(org.apache.ibatis.type.JdbcType jdbcTypeForNull) setLazyLoadingEnabled(Boolean lazyLoadingEnabled) setLazyLoadTriggerMethods(Set<String> lazyLoadTriggerMethods) setLocalCacheScope(org.apache.ibatis.session.LocalCacheScope localCacheScope) setLogImpl(Class<? extends org.apache.ibatis.logging.Log> logImpl) setLogPrefix(String logPrefix) setMapUnderscoreToCamelCase(Boolean mapUnderscoreToCamelCase) setMultipleResultSetsEnabled(Boolean multipleResultSetsEnabled) setNullableOnForEach(Boolean nullableOnForEach) setReturnInstanceForEmptyRow(Boolean returnInstanceForEmptyRow) setSafeResultHandlerEnabled(Boolean safeResultHandlerEnabled) setSafeRowBoundsEnabled(Boolean safeRowBoundsEnabled) setShrinkWhitespacesInSql(Boolean shrinkWhitespacesInSql) setUseActualParamName(Boolean useActualParamName) setUseColumnLabel(Boolean useColumnLabel) setUseGeneratedKeys(Boolean useGeneratedKeys) setUseGeneratedShortKey(Boolean useGeneratedShortKey) setVariables(Properties variables) setVfsImpl(Class<? extends org.apache.ibatis.io.VFS> vfsImpl)
-
构造器详细资料
-
CoreConfiguration
public CoreConfiguration()
-
-
方法详细资料
-
applyTo
public void applyTo(com.baomidou.mybatisplus.core.MybatisConfiguration target) -
getSafeRowBoundsEnabled
-
getSafeResultHandlerEnabled
-
getMapUnderscoreToCamelCase
-
getAggressiveLazyLoading
-
getMultipleResultSetsEnabled
-
getUseGeneratedKeys
-
getUseColumnLabel
-
getCacheEnabled
-
getCallSettersOnNulls
-
getUseActualParamName
-
getReturnInstanceForEmptyRow
-
getShrinkWhitespacesInSql
-
getNullableOnForEach
-
getArgNameBasedConstructorAutoMapping
-
getLazyLoadingEnabled
-
getDefaultStatementTimeout
-
getDefaultFetchSize
-
getLocalCacheScope
public org.apache.ibatis.session.LocalCacheScope getLocalCacheScope() -
getJdbcTypeForNull
public org.apache.ibatis.type.JdbcType getJdbcTypeForNull() -
getDefaultResultSetType
public org.apache.ibatis.mapping.ResultSetType getDefaultResultSetType() -
getDefaultExecutorType
public org.apache.ibatis.session.ExecutorType getDefaultExecutorType() -
getAutoMappingBehavior
public org.apache.ibatis.session.AutoMappingBehavior getAutoMappingBehavior() -
getAutoMappingUnknownColumnBehavior
public org.apache.ibatis.session.AutoMappingUnknownColumnBehavior getAutoMappingUnknownColumnBehavior() -
getLogPrefix
-
getLazyLoadTriggerMethods
-
getLogImpl
-
getVfsImpl
-
getDefaultSqlProviderType
-
getDefaultEnumTypeHandler
-
getConfigurationFactory
-
getVariables
-
getDatabaseId
-
getDefaultScriptingLanguageDriver
public Class<? extends org.apache.ibatis.scripting.LanguageDriver> getDefaultScriptingLanguageDriver() -
getUseGeneratedShortKey
-
setSafeRowBoundsEnabled
public MybatisPlusProperties.CoreConfiguration setSafeRowBoundsEnabled(Boolean safeRowBoundsEnabled) - 返回:
this.
-
setSafeResultHandlerEnabled
public MybatisPlusProperties.CoreConfiguration setSafeResultHandlerEnabled(Boolean safeResultHandlerEnabled) - 返回:
this.
-
setMapUnderscoreToCamelCase
public MybatisPlusProperties.CoreConfiguration setMapUnderscoreToCamelCase(Boolean mapUnderscoreToCamelCase) - 返回:
this.
-
setAggressiveLazyLoading
public MybatisPlusProperties.CoreConfiguration setAggressiveLazyLoading(Boolean aggressiveLazyLoading) - 返回:
this.
-
setMultipleResultSetsEnabled
public MybatisPlusProperties.CoreConfiguration setMultipleResultSetsEnabled(Boolean multipleResultSetsEnabled) - 返回:
this.
-
setUseGeneratedKeys
- 返回:
this.
-
setUseColumnLabel
- 返回:
this.
-
setCacheEnabled
- 返回:
this.
-
setCallSettersOnNulls
- 返回:
this.
-
setUseActualParamName
- 返回:
this.
-
setReturnInstanceForEmptyRow
public MybatisPlusProperties.CoreConfiguration setReturnInstanceForEmptyRow(Boolean returnInstanceForEmptyRow) - 返回:
this.
-
setShrinkWhitespacesInSql
public MybatisPlusProperties.CoreConfiguration setShrinkWhitespacesInSql(Boolean shrinkWhitespacesInSql) - 返回:
this.
-
setNullableOnForEach
- 返回:
this.
-
setArgNameBasedConstructorAutoMapping
public MybatisPlusProperties.CoreConfiguration setArgNameBasedConstructorAutoMapping(Boolean argNameBasedConstructorAutoMapping) - 返回:
this.
-
setLazyLoadingEnabled
- 返回:
this.
-
setDefaultStatementTimeout
public MybatisPlusProperties.CoreConfiguration setDefaultStatementTimeout(Integer defaultStatementTimeout) - 返回:
this.
-
setDefaultFetchSize
- 返回:
this.
-
setLocalCacheScope
public MybatisPlusProperties.CoreConfiguration setLocalCacheScope(org.apache.ibatis.session.LocalCacheScope localCacheScope) - 返回:
this.
-
setJdbcTypeForNull
public MybatisPlusProperties.CoreConfiguration setJdbcTypeForNull(org.apache.ibatis.type.JdbcType jdbcTypeForNull) - 返回:
this.
-
setDefaultResultSetType
public MybatisPlusProperties.CoreConfiguration setDefaultResultSetType(org.apache.ibatis.mapping.ResultSetType defaultResultSetType) - 返回:
this.
-
setDefaultExecutorType
public MybatisPlusProperties.CoreConfiguration setDefaultExecutorType(org.apache.ibatis.session.ExecutorType defaultExecutorType) - 返回:
this.
-
setAutoMappingBehavior
public MybatisPlusProperties.CoreConfiguration setAutoMappingBehavior(org.apache.ibatis.session.AutoMappingBehavior autoMappingBehavior) - 返回:
this.
-
setAutoMappingUnknownColumnBehavior
public MybatisPlusProperties.CoreConfiguration setAutoMappingUnknownColumnBehavior(org.apache.ibatis.session.AutoMappingUnknownColumnBehavior autoMappingUnknownColumnBehavior) - 返回:
this.
-
setLogPrefix
- 返回:
this.
-
setLazyLoadTriggerMethods
public MybatisPlusProperties.CoreConfiguration setLazyLoadTriggerMethods(Set<String> lazyLoadTriggerMethods) - 返回:
this.
-
setLogImpl
public MybatisPlusProperties.CoreConfiguration setLogImpl(Class<? extends org.apache.ibatis.logging.Log> logImpl) - 返回:
this.
-
setVfsImpl
public MybatisPlusProperties.CoreConfiguration setVfsImpl(Class<? extends org.apache.ibatis.io.VFS> vfsImpl) - 返回:
this.
-
setDefaultSqlProviderType
public MybatisPlusProperties.CoreConfiguration setDefaultSqlProviderType(Class<?> defaultSqlProviderType) - 返回:
this.
-
setDefaultEnumTypeHandler
public MybatisPlusProperties.CoreConfiguration setDefaultEnumTypeHandler(Class<? extends org.apache.ibatis.type.TypeHandler> defaultEnumTypeHandler) - 返回:
this.
-
setConfigurationFactory
public MybatisPlusProperties.CoreConfiguration setConfigurationFactory(Class<?> configurationFactory) - 返回:
this.
-
setVariables
- 返回:
this.
-
setDatabaseId
- 返回:
this.
-
setDefaultScriptingLanguageDriver
public MybatisPlusProperties.CoreConfiguration setDefaultScriptingLanguageDriver(Class<? extends org.apache.ibatis.scripting.LanguageDriver> defaultScriptingLanguageDriver) - 返回:
this.
-
setUseGeneratedShortKey
public MybatisPlusProperties.CoreConfiguration setUseGeneratedShortKey(Boolean useGeneratedShortKey) - 返回:
this.
-