title: Getting SqlSession when extending SqlSessionDaoSupport
body: <p>I would like to obtain SqlSession on my mapper class using &quot;extends SqlSessionDaoSupport&quot; in my SpringBoot app.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public class SearchRepository extends SqlSessionDaoSupport{
  
      private final SearchTmpMapper mapper;
  
      public SqlSession searchTmp() {
  
          SearchFilter filter = intializeFilter();
          mapper.searchTmp(filter);
          
          return this.getSqlSession();
  }
  
  public interface SearchTmpMapper {
  
      void searchTmp(
              @Param("filter") SearchFilter filter);
  }
  
  &lt;select id="searchTmp"&gt;
          /* some SQL select */
  &lt;/select&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But I am facing &quot;IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required&quot; error. I have added this to my POM file.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><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.3.2&lt;/version&gt;
  &lt;/dependency&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But I cannot start the application because od this error. Do you have some advice?</p>