1.Mybatis入门
创建数据库,创建数据表
导入jar包
创建实体类
配置文件mybatis-config.xml
Category.xml
测试类TestMybatis
测试
2.Mybatis CRUD
一次性修改配置文件Category.xml
增加
TestMybatis.java
测试
删除
测试
获取
测试
修改
MyBatis 更多查询
模糊查询
修改Category.xml
修改TestMybatis
多条件查询
动态sql
Mybatis if
Product.xml
TestMybatis
Mybatis where
where标签
Product.xml
TestMybatis
set标签
trim标签
Mybatis choose
Mybatis foreach