Upgrade to Spring Boot 3.5.6 and migrate to Jakarta EE#12
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Upgrade to Spring Boot 3.5.6 and migrate to Jakarta EE#12devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- Updated Spring Boot from 2.7.14/2.7.15 to 3.5.6 across all 7 services - Updated Spring Cloud from 2021.0.8 to 2025.0.0 - Updated Keycloak from 21.0.1 to 22.0.5 in User-Service - Migrated javax.persistence.* to jakarta.persistence.* in all entity files - Migrated javax.transaction.Transactional to jakarta.transaction.Transactional - Updated GlobalExceptionHandler method signatures for Spring Framework 6.x (HttpStatus → HttpStatusCode) - Replaced Apache Commons IOUtils with standard Java BufferedReader (no longer a transitive dependency) - Updated SecurityConfig for Spring Security 6.x compatibility (lambda-based configuration) - Removed deprecated @EnableEurekaClient annotation from API-Gateway, User-Service, Transaction-Service Services upgraded: - API-Gateway - Account-Service - Fund-Transfer - Sequence-Generator - Service-Registry - Transaction-Service - User-Service All services compile successfully and tests pass. 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 migrate to Jakarta EE
Summary
Upgraded all 7 microservices from Spring Boot 2.7.14/2.7.15 to Spring Boot 3.5.6 with complete Jakarta EE namespace migration. This includes updating Spring Cloud from 2021.0.8 to 2025.0.0, Keycloak from 21.0.1 to 22.0.5, and handling all breaking changes from the major version upgrade.
Services upgraded:
Key changes:
pom.xmlfiles with Spring Boot 3.5.6 and Spring Cloud 2025.0.0javax.persistence.*→jakarta.persistence.*in all entity classesjavax.transaction.Transactional→jakarta.transaction.TransactionalGlobalExceptionHandlermethod signatures for Spring Framework 6.x compatibility (HttpStatus→HttpStatusCode)BufferedReader(no longer a transitive dependency)SecurityConfigto use lambda-based configuration for Spring Security 6.x@EnableEurekaClientannotation (auto-registration now default)Review & Testing Checklist for Human
End-to-end authentication flow - Test OAuth2/JWT authentication through the API Gateway. The SecurityConfig was updated to use lambda-based configuration for Spring Security 6.x. Verify login, token validation, and protected endpoints still work correctly.
Keycloak integration - Test user registration and management in User-Service. The Keycloak admin client was upgraded from 21.0.1 to 22.0.5. Verify user creation, updates, and authentication against Keycloak work as expected.
Service discovery - Verify all services register with Eureka correctly. The
@EnableEurekaClientannotation was removed (deprecated in Spring Cloud 2022.x+) and registration should happen automatically. Check the Eureka dashboard to confirm all 7 services appear.Feign client error handling - Test API error responses across services. The
FeignClientErrorDecoderin Account-Service, Fund-Transfer, and Transaction-Service was updated to useBufferedReaderinstead of Apache Commons IOUtils. Verify error responses are still parsed and propagated correctly.Database operations - Test CRUD operations in all services that use JPA (Account-Service, Fund-Transfer, Sequence-Generator, Transaction-Service, User-Service). The Jakarta persistence namespace migration should be transparent, but verify entity mappings and database operations work correctly.
Test Plan
Notes
spring.cloud.gateway.routes[*]keys should be migrated tospring.cloud.gateway.server.webflux.routes[*]in a follow-up PR to avoid future compatibility issues.@EqualsAndHashCodewarnings about missingcallSuperare pre-existing and not introduced by this PR.Link to Devin run: https://app.devin.ai/sessions/d5242c4b58d449648bee8814f0d60d94
Requested by: Sam Fertig (@samfert-codeium)