How to configure multiple MyBatis datasources in Spring Boot?
<p>With MyBatis-Spring-Boot-Starter, we can easily integrate MyBatis with Spring Boot, it works perfectly for one data source. However, now we'd like to add an extra data source in our project, unfortunately it seems not easy.
In MyBatis official documentation, I see the following content:</p>

<blockquote>
  <p>MyBatis-Spring-Boot-Starter will:</p>
  
  <blockquote>
    <ul>
    <li>Autodetect an existing DataSource.</li>
    <li>Will create and register an instance of a SqlSessionFactoryBean passing that DataSource as an input.</li>
    <li>Will create and register an instance of a SqlSessionTemplate got out of the SqlSessionFactoryBean.</li>
    </ul>
  </blockquote>
</blockquote>

<p>It looks like MyBatis-Spring-Boot-Starter supports only one data source at this moment. So, the question is how to configure multiple MyBatis datasources in Sping Boot?</p>