Bean for org.mybatis.spring.SqlSessionFactoryBean to configure the datasource.

MapperScannerConfigurer – This class initializes a bean for each of the mapper interface defined in basePackage and injects sqlSessionFactory instance in it. This enables Autowiring of the mapper interfaces in code.