MyBatis 是一个访问数据库的框架


(1) entity包下写实体类 
(2) dao文件夹下写***mapper


(3) mapper文件夹下创建*.xml文件

插入的时候,id自动生成的,在keyProperty中定义:

update:

调用测试: