MyBatis-Spring is a submodule of the MyBatis framework, which provides seamless integration with the popular dependency injection framework, Spring.
The Spring framework is a Dependency Injection and Aspect Oriented Programming (AOP) based Java application framework which encourages POJO-based programming model. Also, Spring provides declarative and programmatic transaction management capabilities, which greatly simplify the implementation of the data access layer of the application. In this chapter, we will see how to use MyBatis in a Spring-based application and use Spring's annotation-based transaction management strategy.
In this chapter we will cover the following topics: