1. Introduction to mybatis
What is mybatis?
Mybatis is an excellent persistent layer framework that supports common SQL queries, stored procedures, and advanced mappings. Mybatis eliminates the manual settings of almost all JDBC code and parameters and retrieves the result set. Mybatis uses simple XML or annotations for configuration and original ing. It maps interfaces and Java pojos (plain old Java objects, a common Java object) into records in the database.
Framework used on the market
- Hibernate
- Jdbctemplate
- Ibatis
- Mybatis
Advantages of mybatis
- Well encapsulated JDBC
- Easy to master
- High flexibility
Installation Package of mybatis
- Lib: third-party dependent package
- Mybatis-3.1.1.jar: Core Package
- Mybatis-3.1.1.pdf: Instructions
- Mybatis-3.1.1-javadoc.jar: mybatis API
- Mybatis-3.1.1-source.jar: source code
Mybatis documentation
Http://mybatis.github.io/mybatis-3/zh/