mybatisplus + 数据库 相关注解

关联:

pom.xml配置注入依赖:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!--        mybatisplus+数据库相关开始-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- mybatisplus+数据库相关结束-->