1.下载 MyBatis:[https://github.com/mybatis/mybatis-3/](“MyBatis-3”)

MyBatis(一) 搭建环境

MyBatis(一) 搭建环境

2.在项目中添加 jar 包:mybatis-3.4.6.jar

如果需要打印 SQL 语句,需要导入日志包:log4j-1.2.17.jar。

以及 log4j.xml 文件。

相关文章: