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

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

Best Java code snippets using com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusProperties.getConfigLocation (Showing top 2 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()));
if (configuration == null && !StringUtils.hasText(this.properties.getConfigLocation())) {
  configuration = new MybatisConfiguration();
com.baomidou.mybatisplus.spring.boot.starterMybatisPlusPropertiesgetConfigLocation

Popular methods of MybatisPlusProperties

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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