Upgrade Spring Boot 2.7 to 3.2 and migrate to Jakarta EE#3165
Closed
singhularity wants to merge 1 commit intoalibaba:masterfrom
Closed
Upgrade Spring Boot 2.7 to 3.2 and migrate to Jakarta EE#3165singhularity wants to merge 1 commit intoalibaba:masterfrom
singhularity wants to merge 1 commit intoalibaba:masterfrom
Conversation
Spring Boot 2.7.x reached end of life in November 2023. This upgrades the project to Spring Boot 3.2, which brings Jakarta EE 10, Spring Framework 6, and requires Java 17 as the minimum version. Changes: - Bump spring-boot.version from 2.7.18 to 3.2.0 - Bump maven.compiler.source/target from 1.8 to 17 - Migrate javax.servlet imports to jakarta.servlet (tunnel-server) - Migrate javax.activation to jakarta.activation (grpc-web-proxy) - Migrate WebSecurityConfigurerAdapter to SecurityFilterChain bean with the new lambda-style DSL (Spring Security 6) - Add javax.annotation-api dependency for protobuf-generated code in arthas-grpc-server (gRPC codegen still uses javax.annotation) - Add Lombok annotation processor configuration to maven-compiler-plugin (required for annotation processing in Java 17+) - Update Lombok version property and add it to parent POM All 23 modules compile successfully with `mvn clean install -DskipTests`.
|
Spring Boot 3.2.X不维护了,要升级就最少升级到维护的Spring Boot版本如3.5.X |
Collaborator
|
The changes in this PR are overly complex, so the implementation has been replaced by the following two PRs: Thanks for the contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
Spring Boot 2.7.x reached end of life in November 2023. This PR upgrades the project to Spring Boot 3.2, which brings Jakarta EE 10, Spring Framework 6, and Spring Security 6. Java 17 is now the minimum version (required by Spring Boot 3.x).
Brief change log
spring-boot.versionfrom 2.7.18 to 3.2.0maven.compiler.source/targetfrom 8 to 17javax.servletimports tojakarta.servlet(tunnel-server)javax.activationtojakarta.activation(grpc-web-proxy)WebSecurityConfigurerAdaptertoSecurityFilterChainbean with lambda-style DSL (Spring Security 6)javax.annotation-apidependency for protobuf-generated code in arthas-grpc-server (gRPC codegen still emitsjavax.annotation)maven-compiler-plugin(required for Java 17+)lombok.versionproperty to parent POMVerify this pull request
This pull request is already covered by existing tests.
All 23 modules compile successfully:
mvn clean install -DskipTests # BUILD SUCCESSVideo Walkthrough
https://github.com/user-attachments/assets/placeholder
https://github.com/singhularity/arthas/releases/download/untagged-611ce048151080371ddf/prexplainer-tour-2026-03-31T19-11-03.mp4
Created using PRExplainer