Upgrade to Spring Boot 3.5.6 and Spring Cloud 2025.0.0#13
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Upgrade to Spring Boot 3.5.6 and Spring Cloud 2025.0.0#13devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- Upgraded all 7 microservices from Spring Boot 2.7.14/2.7.15 to 3.5.6 - Upgraded Spring Cloud from 2021.0.8 to 2025.0.0 (Northfields) - Upgraded Keycloak Admin Client from 21.0.1 to 26.0.7 for Jakarta EE support - Migrated all javax.persistence imports to jakarta.persistence across 6 entity files - Migrated javax.transaction import to jakarta.transaction in UserServiceImpl - Removed deprecated @EnableEurekaClient annotations (auto-registration in Spring Boot 3.x) - Updated ResponseEntityExceptionHandler method signatures (HttpStatus → HttpStatusCode) - Added commons-io dependency to Account-Service, Fund-Transfer, and Transaction-Service (transitive dependency no longer included in Spring Boot 3.x) All services compile successfully and tests pass for Service-Registry, Sequence-Generator, and API-Gateway. 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:
|
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 to Spring Boot 3.5.6 and Spring Cloud 2025.0.0
Summary
This PR upgrades all 7 microservices from Spring Boot 2.7.x to Spring Boot 3.5.6 (latest stable) and Spring Cloud from 2021.0.8 to 2025.0.0 (Northfields release). This is a major framework upgrade requiring namespace migration, dependency updates, and code changes for API compatibility.
Changes Applied
Version Upgrades (all 7 services):
Namespace Migration (javax → jakarta):
javax.persistencetojakarta.persistence(6 files)javax.transactiontojakarta.transaction(1 file)Code Changes for Spring Boot 3.x Compatibility:
@EnableEurekaClientannotations (API-Gateway, User-Service, Transaction-Service) - Spring Boot 3.x auto-registers with EurekaGlobalExceptionHandlermethod signatures (Account-Service, User-Service) - changedHttpStatusparameter toHttpStatusCodeper Spring Framework 6.x API changescommons-iodependency (Account-Service, Fund-Transfer, Transaction-Service) - no longer included transitively in Spring Boot 3.xVerification Completed
✅ All 7 services compile successfully
✅ Tests pass for Service-Registry, Sequence-Generator, and API-Gateway
✅ No remaining
javax.persistenceimports in codebaseReview & Testing Checklist for Human
Deploy all services in complete environment - Set up MySQL, Keycloak, and all 7 services in a test environment. Verify all services start successfully and register with Eureka.
Test User-Service Keycloak integration - The Keycloak Admin Client was upgraded 5 major versions (21.0.1 → 26.0.7). Verify user creation, updates, and authentication flows still work correctly.
Test Account-Service, Fund-Transfer, and Transaction-Service - These services could not be tested locally due to MySQL/Keycloak dependencies. Verify all CRUD operations, Feign client calls, and error handling work correctly.
Test API-Gateway OAuth2 flows - Verify authentication, authorization, and routing work correctly. Note: Test output shows deprecation warnings for Gateway configuration properties (
spring.cloud.gateway.routes→spring.cloud.gateway.server.webflux.routes), but functionality should still work.Test inter-service communication - Verify services can discover and communicate with each other through the API Gateway and via direct Feign client calls.
Recommended Test Plan
Notes
commons-ioto 3 services because it's no longer a transitive dependency in Spring Boot 3.x. Monitor for other missing transitive dependencies during testing.Link to Devin run: https://app.devin.ai/sessions/a3d47422eceb40258738c6131c1e4004
Requested by: Sam Fertig (@samfert-codeium)