Migrating to 6.2

本指南提供了从 Spring Security 6.1 迁移到 Spring Security 6.2 的说明。

This guide provides instructions for migrating from Spring Security 6.1 to Spring Security 6.2.

Update to Spring Security 6.2

当更新到新的次要版本时,务必使用先前次要版本的最新修补程序版本。例如,如果您要升级到 Spring Security 6.2,则您应该已经使用 Spring Security 6.1 的最新修补程序版本。这样可以更容易地识别新次要版本中可能引入的任何更改。

When updating to a new minor version, it is important that you are already using the latest patch release of the previous minor version. For example, if you are upgrading to Spring Security 6.2, you should already be using the latest patch release of Spring Security 6.1. This makes it easier to identify any changes that may have been introduced in the new minor version.

因此,第一步是确保您使用的是 Spring Boot 3.1 的最新补丁版本。接下来,您应确保使用 Spring Security 6.1 的最新补丁版本。通常,Spring Boot 的最新补丁版本使用 Spring Security 的最新补丁版本。

Therefore, the first step is to ensure you are on the latest patch release of Spring Boot 3.1. Next, you should ensure you are on the latest patch release of Spring Security 6.1. Typically, the latest patch release of Spring Boot uses the latest patch release of Spring Security.

完成这两步后,您现在可以更新到 Spring Security 6.2。

With those two steps complete, you can now update to Spring Security 6.2.

Quick Reference

以下列表对本指南中描述的更改提供了快速参考。

The following list provide a quick reference for the changes that are described in this guide.