As you may already know, to use MyBatis with Spring you need at least an SqlSessionFactory and at least one mapper interface. MyBatis-Spring-Boot-Starter will: Autodetect an existing DataSource. Will create and register an instance of a SqlSessionFac