深入浅出MyBatis技术原理与实战

第1 章 MyBatis 简介.................................................................................................................................. 1
1.1 传统的JDBC 编程........................................................................................................................ 1
1.2 ORM 模型....................................................................................................................................... 4
1.3 Hibernate.................................................................................................................................... 4
1.4 MyBatis ..................................................................................................................................... 9
1.5 什么时候用MyBatis....................................................................................................................12
第2 章 MyBaits 入门.........................................................................................................................13
2.1 开发环境准备...............................................................................................................................13
2.1.1 下载MyBatis .........................................................................................................................13
2.1.2 搭建开发环境........................................................................................................................14
2.2 MyBatis 的基本构成....................................................................................................................15
2.2.1 构建SqlSessionFactory..........................................................................................................15
2.2.2 创建SqlSession.....................................................................................................................19
2.2.3 映射器...................................................................................................................................21
2.3 生命周期.........................................................................................................................................26
2.3.1 SqlSessionFactoryBuilder.......................................................................................................27
2.3.2 SqlSessionFactory..................................................................................................................27
2.3.3 SqlSession..............................................................................................................................27
2.3.4 Mapper...................................................................................................................................28
2.4 实例...........................................................................................................................................29
第3 章 配置.........................................................................................................................................37
3.1 properties 元素...............................................................................................................................38
3.1.1 property 子元素......................................................................................................................38
3.1.2 properties 配置文件...............................................................................................................39
3.1.3 程序参数传递........................................................................................................................39
3.1.4 优先级...................................................................................................................................40
3.2 设置.........................................................................................................................................41
3.3 别名........................................................................................................................................44
3.3.1 系统定义别名...............................................................................................................

 

posted @ 2016-12-15 20:13  保安保洁保姆外卖快递  阅读(1350)  评论(1编辑  收藏  举报