类 GlobalConfig
java.lang.Object
com.baomidou.mybatisplus.core.config.GlobalConfig
- 所有已实现的接口:
Serializable
Mybatis 全局缓存
- 从以下版本开始:
- 2016-12-06
- 作者:
- Caratacus
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected booleanboolean注解控制器数据库相关配置主键生成器缓存已注入CRUD的Mapper信息元对象字段填充控制器参与 TableInfo 的初始化数据库相关配置SQL注入器org.apache.ibatis.session.SqlSessionFactory已过时。3.5.3.2Class<?> Mapper父类inthashCode()booleanisBanner()是否开启 LOGOboolean是否初始化 SqlRunnersetAnnotationHandler(AnnotationHandler annotationHandler) 注解控制器setBanner(boolean banner) 是否开启 LOGOsetDbConfig(GlobalConfig.DbConfig dbConfig) 数据库相关配置setEnableSqlRunner(boolean enableSqlRunner) 是否初始化 SqlRunnersetIdentifierGenerator(IdentifierGenerator identifierGenerator) 主键生成器setMapperRegistryCache(Set<String> mapperRegistryCache) 缓存已注入CRUD的Mapper信息setMetaObjectHandler(MetaObjectHandler metaObjectHandler) 元对象字段填充控制器setPostInitTableInfoHandler(PostInitTableInfoHandler postInitTableInfoHandler) 参与 TableInfo 的初始化setSequence(GlobalConfig.Sequence sequence) 数据库相关配置setSqlInjector(ISqlInjector sqlInjector) SQL注入器setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) 已过时。3.5.3.2setSuperMapperClass(Class<?> superMapperClass) Mapper父类toString()
-
构造器详细资料
-
GlobalConfig
public GlobalConfig()
-
-
方法详细资料
-
isBanner
public boolean isBanner()是否开启 LOGO -
isEnableSqlRunner
public boolean isEnableSqlRunner()是否初始化 SqlRunner -
getDbConfig
数据库相关配置 -
getSqlInjector
SQL注入器 -
getSuperMapperClass
Mapper父类 -
getSqlSessionFactory
已过时。3.5.3.2仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用) -
getMapperRegistryCache
缓存已注入CRUD的Mapper信息 -
getMetaObjectHandler
元对象字段填充控制器 -
getAnnotationHandler
注解控制器 -
getPostInitTableInfoHandler
参与 TableInfo 的初始化 -
getIdentifierGenerator
主键生成器 -
getSequence
数据库相关配置 -
setBanner
是否开启 LOGO- 返回:
this.
-
setEnableSqlRunner
是否初始化 SqlRunner- 返回:
this.
-
setDbConfig
数据库相关配置- 返回:
this.
-
setSqlInjector
SQL注入器- 返回:
this.
-
setSuperMapperClass
Mapper父类- 返回:
this.
-
setSqlSessionFactory
@Deprecated public GlobalConfig setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory) 已过时。3.5.3.2仅用于缓存 SqlSessionFactory(外部勿进行set,set了也没用)- 返回:
this.
-
setMapperRegistryCache
缓存已注入CRUD的Mapper信息- 返回:
this.
-
setMetaObjectHandler
元对象字段填充控制器- 返回:
this.
-
setAnnotationHandler
注解控制器- 返回:
this.
-
setPostInitTableInfoHandler
参与 TableInfo 的初始化- 返回:
this.
-
setIdentifierGenerator
主键生成器- 返回:
this.
-
setSequence
数据库相关配置- 返回:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-