使用 springboot + mybatis plus 进行开发
创建项目
- 选择 springinit 进行项目初始化
- 设置 jdk 版本为 1.8
- 设置 java 版本为 8
- 选择 spring boot 版本 2.7.5
- 勾选数据库依赖 选择 mysql driver
添加项目依赖 导入 mybatis plus
- 导入 mybatis plus
- 导入 druid
1
2
3
4
5
6
7
8
9
10
11
12<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.23</version>
</dependency>