Codota Logo
MybatisPlusProperties
Code IndexAdd Codota to your IDE (free)

How to use
MybatisPlusProperties
in
com.baomidou.mybatisplus.spring.boot.starter

Best Java code snippets using com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusProperties (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: com.baomidou/mybatisplus-spring-boot-starter

@PostConstruct
public void checkConfigFileExists() {
  if (this.properties.isCheckConfigLocation() && StringUtils.hasText(this.properties.getConfigLocation())) {
    Resource resource = this.resourceLoader.getResource(this.properties.getConfigLocation());
    Assert.state(resource.exists(), "Cannot find config location: " + resource
        + " (please add config file or check your Mybatis configuration)");
  }
}
origin: com.baomidou/mybatisplus-spring-boot-starter

factory.setDataSource(dataSource);
factory.setVfs(SpringBootVFS.class);
if (StringUtils.hasText(this.properties.getConfigLocation())) {
  factory.setConfigLocation(this.resourceLoader.getResource(this.properties.getConfigLocation()));
MybatisConfiguration configuration = this.properties.getConfiguration();
if (configuration == null && !StringUtils.hasText(this.properties.getConfigLocation())) {
  configuration = new MybatisConfiguration();
if (this.properties.getConfigurationProperties() != null) {
  factory.setConfigurationProperties(this.properties.getConfigurationProperties());
  factory.setDatabaseIdProvider(this.databaseIdProvider);
if (StringUtils.hasLength(this.properties.getTypeAliasesPackage())) {
  factory.setTypeAliasesPackage(this.properties.getTypeAliasesPackage());
if (StringUtils.hasLength(this.properties.getTypeEnumsPackage())) {
  factory.setTypeEnumsPackage(this.properties.getTypeEnumsPackage());
if (StringUtils.hasLength(this.properties.getTypeHandlersPackage())) {
  factory.setTypeHandlersPackage(this.properties.getTypeHandlersPackage());
if (!ObjectUtils.isEmpty(this.properties.resolveMapperLocations())) {
  factory.setMapperLocations(this.properties.resolveMapperLocations());
if (!ObjectUtils.isEmpty(this.properties.getGlobalConfig())) {
  factory.setGlobalConfig(this.properties.getGlobalConfig().convertGlobalConfiguration());
origin: com.baomidou/mybatisplus-spring-boot-starter

@Bean
@ConditionalOnMissingBean
public SqlSessionTemplate sqlSessionTemplate(SqlSessionFactory sqlSessionFactory) {
  ExecutorType executorType = this.properties.getExecutorType();
  if (executorType != null) {
    return new SqlSessionTemplate(sqlSessionFactory, executorType);
  } else {
    return new SqlSessionTemplate(sqlSessionFactory);
  }
}
com.baomidou.mybatisplus.spring.boot.starterMybatisPlusProperties

Javadoc

Configuration properties for MyBatis.

Most used methods

  • getConfigLocation
  • getConfiguration
  • getConfigurationProperties
  • getExecutorType
  • getGlobalConfig
  • getTypeAliasesPackage
  • getTypeEnumsPackage
  • getTypeHandlersPackage
  • isCheckConfigLocation
  • resolveMapperLocations

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • onCreateOptionsMenu (Activity)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now