1.去maven仓库下载必要的包 包地址 2.点进去(选择下载版本) 个人建议这个版本 2.去mybatis官网 mybatis官网 3.新建xml文件(在官方文档直接复制就行) 4.添加测试类 在myabatis官网 复制文档进行测试