1、数据库驱动:mysql-connector-j
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.3.0</version>
</dependency>
2、连接数据库:spring-boot-starter-jdbc,根据自己的springboot版本选择对应的jdbc版本号
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>3.2.2</version>
</dependency>
3、SQL控制:mybatis-plus-boot-starter,相比mybatis,mybatisplus有更多的sql语句
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.5</version>
</dependency>
4、mapper:mybatis-plus-generator
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.5.5</version>
</dependency>
5、Data注解,有参、无参构造:lombok
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<scope>provided</scope>
</dependency>
标签:依赖,项目,boot,jdbc,plus,mysql,mybatis,starter
From: https://www.cnblogs.com/twinkler/p/18006197