Spring Boot 学习笔记(四)整合 Mybatis
发布时间
阅读量:
阅读量
Mybatis作为一种在国内应用较为普遍的ORM框架,本文将对Spring Boot平台下实现Mybatis集成的具体流程进行简要阐述。
一、研究准备阶段
1.依赖导入与环境配置
首先应当引入与Mybatis及MySQL相关的依赖项:
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version>
</dependency>
(Spring Boot启动相关依赖此处省略)
注:
MyBatis-S
全部评论 (0)
还没有任何评论哟~
