springBoot和spring security版本對(duì)應(yīng)關(guān)系詳解
一、背景
最近在看 spring security,發(fā)現(xiàn)沒(méi)有一個(gè)明確的 springboot 和 spring security 版本的對(duì)應(yīng)關(guān)系,由于 spring security 不同版本之間的差異很大,導(dǎo)致寫(xiě)出來(lái)的代碼不能按照預(yù)期的效果展示,所以我就整理了一下兩者之間的版本對(duì)應(yīng)關(guān)系。
今天是 2021年11月23日,最新穩(wěn)定版本的spring boot 是 2.3.12.RELEASE 版本,如果想查看所有的 spring boot 版本,請(qǐng)查詢這個(gè)地址。
二、配置相關(guān)依賴
在我們的 pom.xml 中,可以通過(guò)這種方式引入 spring security 的依賴,如下所示:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com</groupId> <artifactId>SpringBoot</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>myName</name> <url>www.funtl.com</url> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.14.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
三、版本對(duì)應(yīng)關(guān)系
springboot 版本 | spring security版本 |
| 2.3.12.RELEASE | 5.3.9.RELEASE |
| 2.3.11.RELEASE | 5.3.9.RELEASE |
| 2.3.10.RELEASE | 5.3.9.RELEASE |
| 2.3.9.RELEASE | 5.3.8.RELEASE |
| 2.3.8.RELEASE | 5.3.6.RELEASE |
| 2.3.7.RELEASE | 5.3.6.RELEASE |
| 2.3.6.RELEASE | 5.3.5.RELEASE |
| 2.3.5.RELEASE | 5.3.5.RELEASE |
| 2.3.4.RELEASE | 5.3.4.RELEASE |
| 2.3.3.RELEASE | 5.3.4.RELEASE |
| 2.3.2.RELEASE | 5.3.3.RELEASE |
| 2.3.1.RELEASE | 5.3.3.RELEASE |
| 2.3.0.RELEASE | 5.3.2.RELEASE |
| 2.2.13.RELEASE | 5.2.8.RELEASE |
| 2.2.12.RELEASE | 5.2.8.RELEASE |
| 2.2.11.RELEASE | 5.2.7.RELEASE |
| 2.2.10.RELEASE | 5.2.6.RELEASE |
| 2.2.9.RELEASE | 5.2.5.RELEASE |
| 2.2.8.RELEASE | 5.2.5.RELEASE |
| 2.2.7.RELEASE | 5.2.4.RELEASE |
| 2.2.6.RELEASE | 5.2.2.RELEASE |
| 2.2.5.RELEASE | 5.2.2.RELEASE |
| 2.2.4.RELEASE | 5.2.1.RELEASE |
| 2.2.3.RELEASE | 5.2.1.RELEASE |
| 2.2.2.RELEASE | 5.2.1.RELEASE |
| 2.2.1.RELEASE | 5.2.1.RELEASE |
| 2.2.0.RELEASE | 5.2.0.RELEASE |
| 2.1.18.RELEASE | 5.1.13.RELEASE |
| 2.1.17.RELEASE | 5.1.12.RELEASE |
| 2.1.16.RELEASE | 5.1.11.RELEASE |
| 2.1.15.RELEASE | 5.1.11.RELEASE |
| 2.1.14.RELEASE | 5.1.10.RELEASE |
| 2.1.13.RELEASE | 5.1.8.RELEASE |
| 2.1.12.RELEASE | 5.1.7.RELEASE |
| 2.1.11.RELEASE | 5.1.7.RELEASE |
| 2.1.10.RELEASE | 5.1.7.RELEASE |
| 2.1.9.RELEASE | 5.1.6.RELEASE |
| 2.1.8.RELEASE | 5.1.6.RELEASE |
| 2.1.7.RELEASE | 5.1.6.RELEASE |
| 2.1.6.RELEASE | 5.1.5.RELEASE |
| 2.1.5.RELEASE | 5.1.5.RELEASE |
| 2.1.4.RELEASE | 5.1.5.RELEASE |
| 2.1.3.RELEASE | 5.1.4.RELEASE |
| 2.1.2.RELEASE | 5.1.3.RELEASE |
| 2.1.1.RELEASE | 5.1.2.RELEASE |
| 2.1.0.RELEASE | 5.1.1.RELEASE |
| 2.0.9.RELEASE | 5.0.12.RELEASE |
| 2.0.8.RELEASE | 5.0.11.RELEASE |
| 2.0.7.RELEASE | 5.0.10.RELEASE |
| 2.0.6.RELEASE | 5.0.9.RELEASE |
| 2.0.5.RELEASE | 5.0.8.RELEASE |
| 2.0.4.RELEASE | 5.0.7.RELEASE |
| 2.0.3.RELEASE | 5.0.6.RELEASE |
| 2.0.2.RELEASE | 5.0.5.RELEASE |
| 2.0.1.RELEASE | 5.0.4.RELEASE |
| 2.0.0.RELEASE | 5.0.3.RELEASE |
| 1.5.22.RELEASE | 4.2.13.RELEASE |
| 1.5.21.RELEASE | 4.2.12.RELEASE |
| 1.5.20.RELEASE | 4.2.12.RELEASE |
| 1.5.19.RELEASE | 4.2.11.RELEASE |
| 1.5.18.RELEASE | 4.2.10.RELEASE |
| 1.5.17.RELEASE | 4.2.9.RELEASE |
| 1.5.16.RELEASE | 4.2.8.RELEASE |
| 1.5.15.RELEASE | 4.2.7.RELEASE |
| 1.5.14.RELEASE | 4.2.7.RELEASE |
| 1.5.13.RELEASE | 4.2.6.RELEASE |
| 1.5.12.RELEASE | 4.2.5.RELEASE |
| 1.5.11.RELEASE | 4.2.5.RELEASE |
| 1.5.10.RELEASE | 4.2.4.RELEASE |
| 1.5.9.RELEASE | 4.2.3.RELEASE |
| 1.5.8.RELEASE | 4.2.3.RELEASE |
| 1.5.7.RELEASE | 4.2.3.RELEASE |
| 1.5.6.RELEASE | 4.2.3.RELEASE |
| 1.5.5.RELEASE | 4.2.3.RELEASE |
| 1.5.4.RELEASE | 4.2.3.RELEASE |
| 1.5.3.RELEASE | 4.2.2.RELEASE |
| 1.5.2.RELEASE | 4.2.2.RELEASE |
| 1.5.1.RELEASE | 4.2.1.RELEASE |
| 1.5.0.RELEASE | 4.2.1.RELEASE |
| 1.4.7.RELEASE | 4.1.4.RELEASE |
| 1.4.6.RELEASE | 4.1.4.RELEASE |
| 1.4.5.RELEASE | 4.1.4.RELEASE |
| 1.4.4.RELEASE | 4.1.4.RELEASE |
| 1.4.3.RELEASE | 4.1.4.RELEASE |
| 1.4.2.RELEASE | 4.1.3.RELEASE |
| 1.4.1.RELEASE | 4.1.3.RELEASE |
| 1.4.0.RELEASE | 4.1.1.RELEASE |
| 1.3.8.RELEASE | 4.0.4.RELEASE |
| 1.3.7.RELEASE | 4.0.4.RELEASE |
總結(jié)
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。
相關(guān)文章
Java?Bluetooth?藍(lán)牙通訊?BlueCove?掃描附近的藍(lán)牙設(shè)備(測(cè)試代碼)
BlueCove是一個(gè)開(kāi)源的藍(lán)牙協(xié)議棧實(shí)現(xiàn),旨在為Java開(kāi)發(fā)者提供一個(gè)全面的、易于使用的API,從而在應(yīng)用程序中實(shí)現(xiàn)藍(lán)牙功能,該項(xiàng)目支持多種操作系統(tǒng),這篇文章主要介紹了Java?Bluetooth?藍(lán)牙通訊?BlueCove?掃描附近的藍(lán)牙設(shè)備,需要的朋友可以參考下2025-01-01
SpringMVC MVC架構(gòu)與Servlet使用詳解
MVC設(shè)計(jì)模式一般指 MVC 框架,M(Model)指數(shù)據(jù)模型層,V(View)指視圖層,C(Controller)指控制層。使用 MVC 的目的是將 M 和 V 的實(shí)現(xiàn)代碼分離,使同一個(gè)程序可以有不同的表現(xiàn)形式。其中,View 的定義比較清晰,就是用戶界面2022-10-10
Mybatis如何通過(guò)注解開(kāi)啟使用二級(jí)緩存
這篇文章主要介紹了Mybatis基于注解開(kāi)啟使用二級(jí)緩存,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2019-11-11
SpringBoot設(shè)置首頁(yè)(默認(rèn)頁(yè))跳轉(zhuǎn)功能的實(shí)現(xiàn)方案
這篇文章主要介紹了SpringBoot設(shè)置首頁(yè)(默認(rèn)頁(yè))跳轉(zhuǎn)功能,本文通過(guò)兩種方案,給大家介紹的非常詳細(xì),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2019-07-07
Java如何使用Query動(dòng)態(tài)拼接SQL詳解
這篇文章主要給大家介紹了關(guān)于Java如何使用Query動(dòng)態(tài)拼接SQL的相關(guān)資料,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2019-01-01
SpringCloud?GateWay路由網(wǎng)關(guān)與Config配置中心詳解
文章主要介紹了SpringCloud?Gateway路由網(wǎng)關(guān)的部署與配置,包括添加路由、配置路由過(guò)濾器、編寫(xiě)全局過(guò)濾器等步驟,還介紹了配置中心的使用方法,包括創(chuàng)建配置中心和客戶端配置,以及CAP理論的應(yīng)用場(chǎng)景和特點(diǎn),感興趣的朋友跟隨小編一起看看吧2026-03-03

