title: How can I configure mybatis db connection in spring boot?
body: <p>I have myBatis xml config <code>SqlMapConfig.xml</code></p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;!DOCTYPE configuration
          PUBLIC '-//mybatis.org//DTD Config 3.0//EN'
          'http://mybatis.org/dtd/mybatis-3-config.dtd'&gt;
  
  &lt;configuration&gt;
  
      &lt;!--&lt;typeAliases&gt;--&gt;
          &lt;!--&lt;typeAlias alias = "class_alias_Name" type = "absolute_clas_Name"/&gt;--&gt;
      &lt;!--&lt;/typeAliases&gt;--&gt;
  
      &lt;environments default = "development"&gt;
          &lt;environment id = "development"&gt;
              &lt;transactionManager type = "JDBC"/&gt;
  
              &lt;dataSource type = "POOLED"&gt;
                  &lt;property name = "driver" value = "oracle.jdbc.driver.OracleDriver"/&gt;
                  &lt;property name = "url" value = "jdbc:oracle:thin:@my_ip:port/dbname"/&gt;
                  &lt;property name = "username" value = "username"/&gt;
                  &lt;property name = "password" value = "password"/&gt;
              &lt;/dataSource&gt;
  
          &lt;/environment&gt;
      &lt;/environments&gt;
  
      &lt;!--&lt;mappers&gt;--&gt;
          &lt;!--&lt;mapper resource = "path of the configuration XML file"/&gt;--&gt;
      &lt;!--&lt;/mappers&gt;--&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I have dependency</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;
              &lt;artifactId&gt;mybatis-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I have Repository</p>
  
  <pre><code>@Mapper
  public interface ImsiByMsisdnModelRepository {
  
      final String query = "....";
  
      @Select(query )
      @Results(value = {
              @Result(property = "msisdn", column = "MSISDN"),
              @Result(property = "terminalid", column = "TERMINALID"),
              @Result(property = "startDate", column = "START_DATE"),
              @Result(property = "endDate", column = "END_DATE"),
      })
      List&lt;ImsiByMsisdnModel&gt; getAll(@Param("msisdn") String msisdn);
  }
  </code></pre>
  
  <p>But when I tried build priject I get error</p>
  
  <blockquote>
    <p>Description:</p>
    
    <p>Cannot determine embedded database driver class for database type NONE</p>
    
    <p>Action:</p>
    
    <p>If you want an embedded database please put a supported one on the
    classpath. If you have database settings to be loaded from a
    particular profile you may need to active it (no profiles are
    currently active).</p>
  </blockquote>
  
  <p>Hov can I setup <code>SqlMapConfig.xml</code>? </p>
  
  <p>I tried write in <code>application.properties</code> line</p>
  
  <pre><code>mybatis.config-location=
  </code></pre>
  
  <p>but I do not know which path write. <code>SqlMapConfig.xml</code> placed in resources</p>