MyBatis入门与实践
MyBatis是支持定制化SQL、存储过程以及高级映射的优秀的持久层框架。MyBatis避免了几乎所有的JDBC代码和手动设置参数以及获取结果集。MyBatis可以对配置和原生Map使用简单的XML或注解,将接口和Java的POJOs(Plain Old Java Objects,普通的Java对象)映射成数据库中的记录。
What is MyBatis?
- MyBatis is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings.
- MyBatis eliminates almost all of the JDBC code and manual setting of parameters and retrieval of results.
- MyBatis can use simple XML or Annotations for configuration and map primitives, Map interfaces and Java POJOs (Plain Old Java Objects) to database records.
还没有时间去总结,不过相对来说不是太难,理论可以错过,但实践部分一定不能错过,之前写过一个Demo: Demo-Mybatis