Migrate Spring Boot application from Java 11 to Java 17#8
Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
Open
Migrate Spring Boot application from Java 11 to Java 17#8devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
Conversation
- Update Java version to 17 in build.gradle - Upgrade Spring Boot from 2.6.3 to 3.1.5 - Upgrade dependency-management from 1.0.11.RELEASE to 1.1.3 - Update MyBatis Spring Boot Starter from 2.2.2 to 3.0.3 - Update Netflix DGS Framework to 8.1.1 with platform BOM - Update DGS codegen plugin to 6.0.3 - Update rest-assured testing dependencies to 5.3.2 - Update Gradle wrapper from 7.4 to 8.4 - Migrate javax imports to jakarta namespace (validation, servlet) - Refactor WebSecurityConfig to use SecurityFilterChain bean approach - Update antMatchers to requestMatchers for Spring Security 6 - Fix CustomizeExceptionHandler for Spring Boot 3 API changes - Fix PageInfo type conversion in GraphQL datafetchers - Update GitHub Actions workflow to use Java 17 All 68 existing tests pass with the migration. Co-Authored-By: sachet.agarwal@windsurf.com <sachet.agarwal@windsurf.com>
Author
Original prompt from sachet.agarwal2. Upgrade Spring Boot Version in
|
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.
Migrate Spring Boot application from Java 11 to Java 17
Summary
This PR migrates the RealWorld Spring Boot application from Java 11 to Java 17, including upgrading Spring Boot from 2.6.3 to 3.1.5 and all related dependencies.
Key changes:
javax.*→jakarta.*)WebSecurityConfigurerAdapter, usingSecurityFilterChainbean)Review & Testing Checklist for Human
WebSecurityConfig.javamaintains the same authorization rules - the migration fromantMatcherstorequestMatchersand the new lambda-based configuration style could have subtle differencesPageInfotype was changed fromgraphql.relay.DefaultPageInfotoio.spring.graphql.types.PageInfoin bothArticleDatafetcherandCommentDatafetcher- test GraphQL queries with pagination (first/after, last/before)POST /usersandPOST /users/login(authentication)GET /articlesandGET /articles/feed(authorization rules)POST /articles(validation with Jakarta)CustomizeExceptionHandler.handleMethodArgumentNotValidsignature changed fromHttpStatustoHttpStatusCode- verify validation errors return proper 422 responsesRecommended test plan:
./gradlew bootRunand verify app starts on http://localhost:8080curl http://localhost:8080/tagsNotes
All 68 existing tests pass locally with Java 17. The core business logic, domain entities, and database schema remain unchanged.
Link to Devin run: https://app.devin.ai/sessions/c10f6a129af1420e921722b51f1f2100
Requested by: @SachetCognition