mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-25 08:58:57 +00:00
This commit removes unnecessary main-branch merges starting from 8750608b5bca45525c99d0a41a20ed02de93d8c7 and adds the following needed commit(s) that were made afterward: - 5dce82c48bc0b174838501c5a111b2de70822914
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
[[migration]]
|
|
= Migrating to 6.0
|
|
:spring-security-reference-base-url: https://docs.spring.io/spring-security/reference
|
|
|
|
The Spring Security team has prepared the 5.8 release to simplify upgrading to Spring Security 6.0.
|
|
Use 5.8 and
|
|
ifdef::spring-security-version[]
|
|
{spring-security-reference-base-url}/5.8/migration/index.html[its preparation steps]
|
|
endif::[]
|
|
ifndef::spring-security-version[]
|
|
its preparation steps
|
|
endif::[]
|
|
to simplify updating to 6.0.
|
|
|
|
After updating to 5.8, follow this guide to perform any remaining migration or cleanup steps.
|
|
|
|
And recall that if you run into trouble, the preparation guide includes opt-out steps to revert to 5.x behaviors.
|
|
|
|
== Update to Spring Security 6.0
|
|
|
|
The first step is to ensure you are the latest patch release of Spring Boot 3.0.
|
|
Next, you should ensure you are on the latest patch release of Spring Security 6.0.
|
|
For directions, on how to update to Spring Security 6.0 visit the xref:getting-spring-security.adoc[] section of the reference guide.
|
|
|
|
== Update Package Names
|
|
|
|
Now that you are updated, you need to change your `javax` imports to `jakarta` imports.
|
|
|
|
== Perform Application-Specific Steps
|
|
|
|
Next, there are steps you need to perform based on whether it is a xref:migration/servlet/index.adoc[Servlet] or xref:migration/reactive.adoc[Reactive] application.
|