类 MybatisPlusProperties
java.lang.Object
com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties
@ConfigurationProperties(prefix="mybatis-plus") public class MybatisPlusProperties extends Object
Configuration properties for MyBatis.
- 作者:
- Eddú Meléndez, Kazuki Shimizu
-
构造器概要
构造器 构造器 说明 MybatisPlusProperties() -
方法概要
修饰符和类型 方法 说明 protected booleancanEqual(Object other)booleanequals(Object o)StringgetConfigLocation()Location of MyBatis xml config file.com.baomidou.mybatisplus.core.MybatisConfigurationgetConfiguration()A Configuration object for customize default settings.PropertiesgetConfigurationProperties()Externalized properties for MyBatis configuration.Class<? extends org.apache.ibatis.scripting.LanguageDriver>getDefaultScriptingLanguageDriver()The default scripting language driver class.org.apache.ibatis.session.ExecutorTypegetExecutorType()Execution mode forSqlSessionTemplate.com.baomidou.mybatisplus.core.config.GlobalConfiggetGlobalConfig()TODO 全局配置String[]getMapperLocations()Locations of MyBatis mapper files.StringgetTypeAliasesPackage()Packages to search type aliases.Class<?>getTypeAliasesSuperType()The super class for filtering type alias.StringgetTypeEnumsPackage()TODO 枚举包扫描StringgetTypeHandlersPackage()Packages to search for type handlers.inthashCode()booleanisCheckConfigLocation()Indicates whether perform presence check of the MyBatis xml config file.org.springframework.core.io.Resource[]resolveMapperLocations()MybatisPlusPropertiessetCheckConfigLocation(boolean checkConfigLocation)Indicates whether perform presence check of the MyBatis xml config file.MybatisPlusPropertiessetConfigLocation(String configLocation)Location of MyBatis xml config file.MybatisPlusPropertiessetConfiguration(com.baomidou.mybatisplus.core.MybatisConfiguration configuration)A Configuration object for customize default settings.MybatisPlusPropertiessetConfigurationProperties(Properties configurationProperties)Externalized properties for MyBatis configuration.MybatisPlusPropertiessetDefaultScriptingLanguageDriver(Class<? extends org.apache.ibatis.scripting.LanguageDriver> defaultScriptingLanguageDriver)The default scripting language driver class.MybatisPlusPropertiessetExecutorType(org.apache.ibatis.session.ExecutorType executorType)Execution mode forSqlSessionTemplate.MybatisPlusPropertiessetGlobalConfig(com.baomidou.mybatisplus.core.config.GlobalConfig globalConfig)TODO 全局配置MybatisPlusPropertiessetMapperLocations(String[] mapperLocations)Locations of MyBatis mapper files.MybatisPlusPropertiessetTypeAliasesPackage(String typeAliasesPackage)Packages to search type aliases.MybatisPlusPropertiessetTypeAliasesSuperType(Class<?> typeAliasesSuperType)The super class for filtering type alias.MybatisPlusPropertiessetTypeEnumsPackage(String typeEnumsPackage)TODO 枚举包扫描MybatisPlusPropertiessetTypeHandlersPackage(String typeHandlersPackage)Packages to search for type handlers.StringtoString()
-
构造器详细资料
-
MybatisPlusProperties
public MybatisPlusProperties()
-
-
方法详细资料
-
resolveMapperLocations
public org.springframework.core.io.Resource[] resolveMapperLocations() -
getConfigLocation
Location of MyBatis xml config file. -
getMapperLocations
Locations of MyBatis mapper files.- 从以下版本开始:
- 3.1.2 add default value
-
getTypeAliasesPackage
Packages to search type aliases. (Package delimiters are ",; \t\n") -
getTypeAliasesSuperType
The super class for filtering type alias. If this not specifies, the MyBatis deal as type alias all classes that searched from typeAliasesPackage. -
getTypeHandlersPackage
Packages to search for type handlers. (Package delimiters are ",; \t\n") -
isCheckConfigLocation
public boolean isCheckConfigLocation()Indicates whether perform presence check of the MyBatis xml config file. -
getExecutorType
public org.apache.ibatis.session.ExecutorType getExecutorType()Execution mode forSqlSessionTemplate. -
getDefaultScriptingLanguageDriver
public Class<? extends org.apache.ibatis.scripting.LanguageDriver> getDefaultScriptingLanguageDriver()The default scripting language driver class. (Available when use together with mybatis-spring 2.0.2+)如果设置了这个,你会至少失去几乎所有 mp 提供的功能
-
getConfigurationProperties
Externalized properties for MyBatis configuration. -
getConfiguration
public com.baomidou.mybatisplus.core.MybatisConfiguration getConfiguration()A Configuration object for customize default settings. IfconfigLocationis specified, this property is not used. TODO 使用 MybatisConfiguration -
getTypeEnumsPackage
TODO 枚举包扫描 -
getGlobalConfig
public com.baomidou.mybatisplus.core.config.GlobalConfig getGlobalConfig()TODO 全局配置 -
setConfigLocation
Location of MyBatis xml config file.- 返回:
this.
-
setMapperLocations
Locations of MyBatis mapper files.- 返回:
this.- 从以下版本开始:
- 3.1.2 add default value
-
setTypeAliasesPackage
Packages to search type aliases. (Package delimiters are ",; \t\n")- 返回:
this.
-
setTypeAliasesSuperType
The super class for filtering type alias. If this not specifies, the MyBatis deal as type alias all classes that searched from typeAliasesPackage.- 返回:
this.
-
setTypeHandlersPackage
Packages to search for type handlers. (Package delimiters are ",; \t\n")- 返回:
this.
-
setCheckConfigLocation
Indicates whether perform presence check of the MyBatis xml config file.- 返回:
this.
-
setExecutorType
Execution mode forSqlSessionTemplate.- 返回:
this.
-
setDefaultScriptingLanguageDriver
public MybatisPlusProperties setDefaultScriptingLanguageDriver(Class<? extends org.apache.ibatis.scripting.LanguageDriver> defaultScriptingLanguageDriver)The default scripting language driver class. (Available when use together with mybatis-spring 2.0.2+)如果设置了这个,你会至少失去几乎所有 mp 提供的功能
- 返回:
this.
-
setConfigurationProperties
Externalized properties for MyBatis configuration.- 返回:
this.
-
setConfiguration
public MybatisPlusProperties setConfiguration(com.baomidou.mybatisplus.core.MybatisConfiguration configuration)A Configuration object for customize default settings. IfconfigLocationis specified, this property is not used. TODO 使用 MybatisConfiguration- 返回:
this.
-
setTypeEnumsPackage
TODO 枚举包扫描- 返回:
this.
-
setGlobalConfig
public MybatisPlusProperties setGlobalConfig(com.baomidou.mybatisplus.core.config.GlobalConfig globalConfig)TODO 全局配置- 返回:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-