类 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

      public MybatisPlusProperties()
  • 方法详细资料

    • resolveMapperLocations

      public org.springframework.core.io.Resource[] resolveMapperLocations()
    • getConfigLocation

      public String getConfigLocation()
      Location of MyBatis xml config file.
    • getMapperLocations

      public String[] getMapperLocations()
      Locations of MyBatis mapper files.
      从以下版本开始:
      3.1.2 add default value
    • getTypeAliasesPackage

      public String getTypeAliasesPackage()
      Packages to search type aliases. (Package delimiters are ",; \t\n")
    • getTypeAliasesSuperType

      public Class<?> 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

      public String 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 for SqlSessionTemplate.
    • 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

      public Properties getConfigurationProperties()
      Externalized properties for MyBatis configuration.
    • getConfiguration

      public com.baomidou.mybatisplus.core.MybatisConfiguration getConfiguration()
      A Configuration object for customize default settings. If configLocation is specified, this property is not used. TODO 使用 MybatisConfiguration
    • getTypeEnumsPackage

      public String getTypeEnumsPackage()
      TODO 枚举包扫描
    • getGlobalConfig

      public com.baomidou.mybatisplus.core.config.GlobalConfig getGlobalConfig()
      TODO 全局配置
    • setConfigLocation

      public MybatisPlusProperties setConfigLocation​(String configLocation)
      Location of MyBatis xml config file.
      返回:
      this.
    • setMapperLocations

      public MybatisPlusProperties setMapperLocations​(String[] mapperLocations)
      Locations of MyBatis mapper files.
      返回:
      this.
      从以下版本开始:
      3.1.2 add default value
    • setTypeAliasesPackage

      public MybatisPlusProperties setTypeAliasesPackage​(String typeAliasesPackage)
      Packages to search type aliases. (Package delimiters are ",; \t\n")
      返回:
      this.
    • setTypeAliasesSuperType

      public MybatisPlusProperties setTypeAliasesSuperType​(Class<?> typeAliasesSuperType)
      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

      public MybatisPlusProperties setTypeHandlersPackage​(String typeHandlersPackage)
      Packages to search for type handlers. (Package delimiters are ",; \t\n")
      返回:
      this.
    • setCheckConfigLocation

      public MybatisPlusProperties setCheckConfigLocation​(boolean checkConfigLocation)
      Indicates whether perform presence check of the MyBatis xml config file.
      返回:
      this.
    • setExecutorType

      public MybatisPlusProperties setExecutorType​(org.apache.ibatis.session.ExecutorType executorType)
      Execution mode for SqlSessionTemplate.
      返回:
      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

      public MybatisPlusProperties setConfigurationProperties​(Properties configurationProperties)
      Externalized properties for MyBatis configuration.
      返回:
      this.
    • setConfiguration

      public MybatisPlusProperties setConfiguration​(com.baomidou.mybatisplus.core.MybatisConfiguration configuration)
      A Configuration object for customize default settings. If configLocation is specified, this property is not used. TODO 使用 MybatisConfiguration
      返回:
      this.
    • setTypeEnumsPackage

      public MybatisPlusProperties setTypeEnumsPackage​(String typeEnumsPackage)
      TODO 枚举包扫描
      返回:
      this.
    • setGlobalConfig

      public MybatisPlusProperties setGlobalConfig​(com.baomidou.mybatisplus.core.config.GlobalConfig globalConfig)
      TODO 全局配置
      返回:
      this.
    • equals

      public boolean equals​(Object o)
      覆盖:
      equals 在类中 Object
    • canEqual

      protected boolean canEqual​(Object other)
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object