Upgrade Spring Boot from 2.6.3 to 3.2.5#360
Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
Open
Upgrade Spring Boot from 2.6.3 to 3.2.5#360devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
Conversation
- Spring Boot 2.6.3 -> 3.2.5 - Gradle wrapper 7.4 -> 8.5 - Java 11 -> 17 - Migrate javax.* imports to jakarta.* (servlet, validation) - Refactor WebSecurityConfig: remove WebSecurityConfigurerAdapter, use SecurityFilterChain bean - Update JJWT 0.11.2 -> 0.12.5 with new API (parser/builder changes) - Update Netflix DGS 4.9.21 -> 7.6.0, codegen 5.0.6 -> 6.2.1 - Update MyBatis starter 2.2.2 -> 3.0.3 - Update rest-assured 4.5.1 -> 5.4.0 - Update SQLite JDBC 3.36.0.3 -> 3.45.1.0 - Update dependency-management plugin 1.0.11.RELEASE -> 1.1.4 - Fix GraphQL PageInfo type to use generated types - Fix DataFetcherExceptionHandler to return CompletableFuture - Fix ResponseEntityExceptionHandler method signature for Spring 6 - Update CI workflow to JDK 17 Co-Authored-By: Doris Tian <doristian23@gmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Upgrade Spring Boot from 2.6.3 to 3.2.5
Summary
Upgrades the application from the end-of-life Spring Boot 2.6.3 to Spring Boot 3.2.5, including all required dependency and code migrations:
Build & tooling:
Dependency bumps:
Code migrations:
javax.servlet.*andjavax.validation.*imports →jakarta.*(26 files)WebSecurityConfig: removedWebSecurityConfigurerAdapter, replaced withSecurityFilterChainbean using lambda DSLDefaultJwtService: migrated to JJWT 0.12.x API (parser(),parseSignedClaims(),Keys.hmacShaKeyFor())GraphQLCustomizeExceptionHandler:onException→handleExceptionreturningCompletableFutureCustomizeExceptionHandler:HttpStatus→HttpStatusCodein override signatureArticleDatafetcher/CommentDatafetcher:graphql.relay.DefaultPageInfo→ generatedio.spring.graphql.types.PageInfoReview & Testing Checklist for Human
Keys.hmacShaKeyFor()infers HMAC algorithm from key byte length (HS256 for <48 bytes, HS384 for <64, HS512 for ≥64). The old code explicitly used HS512. Verify that the configuredjwt.secretvalue is ≥64 bytes, or existing tokens will silently fail validation after deploy.requestMatchersrules inWebSecurityConfigbehave identically to the oldantMatchersrules — especially the ordering and the authenticated vs. permitAll assignments. Run the app and test auth/unauth access to key endpoints (/users/login,/articles/feed,/articles/**)../gradlew clean test) against the PR branch with JDK 17. Compilation was verified but tests were not run locally.gradle-wrapper.propertieswas updated; the wrapper jar binary was not regenerated. Confirm CI can bootstrap Gradle 8.5 correctly with the existing jar.hasPreviousPage/hasNextPagein the generatedPageInfotype match the GraphQL schema expectations (the old code usedhasPrevious/hasNextfromgraphql.relay).Notes