开发环境
开发依赖 | 版本 |
---|---|
openJDK | 17 |
SpringBoot | 3.2.1 |
以下是SpringBoot3.x版本依赖 坐标发生变化的常用框架
一、整合MybatisPlus
SpringBoot2.x版本引入的依赖是:
<mybatis.plus.version>3.4.2</mybatis.plus.version>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis.plus.version}</version>
</dependency>
而当SpringBoot3.x版本引入的依赖坐标已改变
<mybatis.plus.version>3.5.5</mybatis.plus.version>
<!-- mybatis-plus-spring-boot3-starter -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>${mybatis.plus.version}</version>
</dependency>
二、整合多数据库框架dynamic-datasource
SpringBoot2.x版本引入的依赖是:
<dynamic.datasource.version>3.5.1</dynamic.datasource.version>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>${dynamic.datasource.version}</version>
</dependency>
而当SpringBoot3.x版本引入的依赖坐标已改变
<dynamic.datasource.version>4.3.0</dynamic.datasource.version>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
<version>${dynamic.datasource.version}</version>
</dependency>
三、整合Druid
druid版本:
<!-- SpringBoot 3.x -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-3-starter</artifactId>
<version>1.2.21</version>
</dependency>
四、整合Knife4j
<knife4j.version>4.3.0</knife4j.version>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
<version>${knife4j.version}</version>
</dependency>
标签:依赖,spring,dynamic,升级,version,SpringBoot3,com,starter
From: https://www.cnblogs.com/fchhk-blog/p/17958160