首页 > 数据库 >SpringBoot - [03] SpringBoot整合Mybatis Plus连接数据库

SpringBoot - [03] SpringBoot整合Mybatis Plus连接数据库

时间:2024-03-22 11:57:01浏览次数:42  
标签:03 SpringBoot Plus mysql Mybatis com

原文链接:https://mp.weixin.qq.com/s/ZJTKX_gmn6ffsY7hNrspHQ

 

一、开发环境

  • JDK:1.8
  • SpringBoot:2.1.1.RELEASE
  • MySQL:8.0.28

 

二、引入依赖

<dependency>
     <groupId>com.baomidou</groupId>
     <artifactId>mybatis-plus-boot-starter</artifactId>
     <version>3.5.4</version>
 </dependency>
 
 <dependency>
     <groupId>mysql</groupId>
     <artifactId>mysql-connector-java</artifactId>
     <scope>runtime</scope>
 </dependency>
 
 <!--lombok-->
 <dependency>
     <groupId>org.projectlombok</groupId>
     <artifactId>lombok</artifactId>
     <version>1.18.30</version>
     <scope>provided</scope>
 </dependency>

 

 

 

 

— 要养成终生学习的习惯 —

标签:03,SpringBoot,Plus,mysql,Mybatis,com
From: https://www.cnblogs.com/houhuilinblogs/p/18089148

相关文章