Upgrade Spring Boot from 2.7.x to 3.5.7 and Spring Cloud to 2025.0.0#20
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Upgrade Spring Boot from 2.7.x to 3.5.7 and Spring Cloud to 2025.0.0#20devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
- Updated all 7 microservice pom.xml files with Spring Boot 3.5.7 and Spring Cloud 2025.0.0 - Migrated javax.* imports to jakarta.* across all entity and service classes - Updated Spring Security configuration to use lambda DSL for Spring Security 6.0 compatibility - Removed javax.ws.rs exclusion from User-Service (no longer needed in Spring Boot 3.x) Services upgraded: - API-Gateway: 2.7.14 → 3.5.7 - Service-Registry: 2.7.14 → 3.5.7 - User-Service: 2.7.14 → 3.5.7 - Account-Service: 2.7.15 → 3.5.7 - Fund-Transfer: 2.7.14 → 3.5.7 - Transaction-Service: 2.7.15 → 3.5.7 - Sequence-Generator: 2.7.15 → 3.5.7 Co-Authored-By: Sam Fertig <sam.fertig@codeium.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:
|
- Remove @EnableEurekaClient annotation from API-Gateway, User-Service, and Transaction-Service (no longer needed - Eureka client is now auto-configured) - Fix Spring Security 6.0 lambda DSL syntax in SecurityConfig using Customizer.withDefaults() - Add Customizer import to SecurityConfig These changes are required for compatibility with Spring Cloud 2025.0.0 (Northfields release train) Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
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.7.x to 3.5.7 and Spring Cloud to 2025.0.0
Summary
This PR upgrades all 7 microservices from Spring Boot 2.7.14/2.7.15 to 3.5.7 (latest) and Spring Cloud from 2021.0.8 to 2025.0.0 (Northfields release train). This is a major version upgrade requiring breaking change fixes for Spring Boot 3.x and Spring Cloud 2022.0.0+ compatibility.
Services upgraded:
Key changes made:
pom.xmlfiles with new Spring Boot and Spring Cloud versionsjavax.*→jakarta.*imports in 7 files (Jakarta EE 10 requirement for Spring Boot 3.x):.authorizeExchange(),.csrf().disable(),.oauth2Login(),.oauth2ResourceServer().jwt()with lambda-based syntaxCustomizer.withDefaults()for default OAuth2 configuration@EnableEurekaClientannotation from 3 services (API-Gateway, User-Service, Transaction-Service) - no longer needed in Spring Cloud 2022.0.0+ as Eureka client is now auto-configuredjavax.ws.rsexclusion from User-Service pom.xml - no longer needed in Spring Boot 3.xReview & Testing Checklist for Human
mvn clean compilefor each service to ensure no compilation errorsmvn testfor Service-Registry, Sequence-Generator, and API-Gateway (the services with test suites)@EnableEurekaClientremoval/api/users/registeris publicly accessible and other endpoints require authentication. Test OAuth2 login flow and JWT resource server functionalityjakarta.persistence.*importsRecommended test plan:
Notes
Link to Devin run: https://app.devin.ai/sessions/ca17b79a5eb24855a35b4d9dafd6cbc1
Requested by: Sam Fertig (@samfert-codeium)