一、创建项目 二、配置环境 2.1引入依赖(pom.xml) 2.2在resources下创建db.properties 2.3创建MyBatis核心配置文件(mybatis-config.xml) 2.4添加log4j文件(log4j.xml) 三、创建数据库