类 GlobalConfig
java.lang.Object
com.baomidou.mybatisplus.core.config.GlobalConfig
- 所有已实现的接口:
Serializable
public class GlobalConfig extends Object implements Serializable
Mybatis 全局缓存
- 从以下版本开始:
- 2016-12-06
- 作者:
- Caratacus
- 另请参阅:
- 序列化表格
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classGlobalConfig.DbConfig -
构造器概要
构造器 构造器 说明 GlobalConfig() -
方法概要
修饰符和类型 方法 说明 protected booleancanEqual(Object other)booleanequals(Object o)LonggetDatacenterId()已过时。3.3.0GlobalConfig.DbConfiggetDbConfig()数据库相关配置IdentifierGeneratorgetIdentifierGenerator()主键生成器Set<String>getMapperRegistryCache()缓存已注入CRUD的Mapper信息MetaObjectHandlergetMetaObjectHandler()元对象字段填充控制器ISqlInjectorgetSqlInjector()SQL注入器org.apache.ibatis.session.SqlSessionFactorygetSqlSessionFactory()仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)Class<?>getSuperMapperClass()Mapper父类LonggetWorkerId()已过时。3.3.0inthashCode()booleanisBanner()是否开启 LOGObooleanisEnableSqlRunner()是否初始化 SqlRunnerGlobalConfigsetBanner(boolean banner)是否开启 LOGOGlobalConfigsetDatacenterId(Long datacenterId)已过时。3.3.0GlobalConfigsetDbConfig(GlobalConfig.DbConfig dbConfig)数据库相关配置GlobalConfigsetEnableSqlRunner(boolean enableSqlRunner)是否初始化 SqlRunnerGlobalConfigsetIdentifierGenerator(IdentifierGenerator identifierGenerator)主键生成器GlobalConfigsetMapperRegistryCache(Set<String> mapperRegistryCache)缓存已注入CRUD的Mapper信息GlobalConfigsetMetaObjectHandler(MetaObjectHandler metaObjectHandler)元对象字段填充控制器GlobalConfigsetSqlInjector(ISqlInjector sqlInjector)SQL注入器GlobalConfigsetSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)GlobalConfigsetSuperMapperClass(Class<?> superMapperClass)Mapper父类GlobalConfigsetWorkerId(Long workerId)已过时。3.3.0StringtoString()
-
构造器详细资料
-
GlobalConfig
public GlobalConfig()
-
-
方法详细资料
-
isBanner
public boolean isBanner()是否开启 LOGO -
getWorkerId
已过时。3.3.0机器 ID 部分 -
getDatacenterId
已过时。3.3.0数据标识 ID 部分 -
isEnableSqlRunner
public boolean isEnableSqlRunner()是否初始化 SqlRunner -
getDbConfig
数据库相关配置 -
getSqlInjector
SQL注入器 -
getSuperMapperClass
Mapper父类 -
getSqlSessionFactory
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用) -
getMapperRegistryCache
缓存已注入CRUD的Mapper信息 -
getMetaObjectHandler
元对象字段填充控制器 -
getIdentifierGenerator
主键生成器 -
setBanner
是否开启 LOGO- 返回:
this.
-
setWorkerId
已过时。3.3.0机器 ID 部分- 返回:
this.- 另请参阅:
setIdentifierGenerator(IdentifierGenerator)
-
setDatacenterId
已过时。3.3.0数据标识 ID 部分- 返回:
this.- 另请参阅:
setIdentifierGenerator(IdentifierGenerator)
-
setEnableSqlRunner
是否初始化 SqlRunner- 返回:
this.
-
setDbConfig
数据库相关配置- 返回:
this.
-
setSqlInjector
SQL注入器- 返回:
this.
-
setSuperMapperClass
Mapper父类- 返回:
this.
-
setSqlSessionFactory
public GlobalConfig setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)- 返回:
this.
-
setMapperRegistryCache
缓存已注入CRUD的Mapper信息- 返回:
this.
-
setMetaObjectHandler
元对象字段填充控制器- 返回:
this.
-
setIdentifierGenerator
主键生成器- 返回:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-