Upgrade to Spring Boot 3.4.0 and Spring Cloud 2024.0.0#30
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Upgrade to Spring Boot 3.4.0 and Spring Cloud 2024.0.0#30devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- Update all 7 services to Spring Boot 3.4.0 (from 2.7.x) - Update Spring Cloud to 2024.0.0 (from 2021.0.8) - Update Keycloak admin client to 26.0.0 (from 21.0.1) - Migrate javax.* imports to jakarta.* namespace (JPA, transactions) - Remove deprecated @EnableEurekaClient annotations - Update GlobalExceptionHandler method signatures for Spring Boot 3.x API changes (HttpStatus -> HttpStatusCode) 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.4.0 and Spring Cloud 2024.0.0
Summary
This PR upgrades the entire BankingMicroservices application from Spring Boot 2.7.x to Spring Boot 3.4.0, along with all necessary dependency and code changes for compatibility.
Changes across all 7 services:
Code migrations:
javax.persistence.*→jakarta.persistence.*(all entity classes)javax.transaction.Transactional→jakarta.transaction.Transactional@EnableEurekaClientannotations (auto-configured in Spring Cloud 2022.0+)GlobalExceptionHandler.handleMethodArgumentNotValid()signature:HttpStatus→HttpStatusCodeAll services compile successfully and existing tests pass.
Local Testing
Service Registry and API Gateway start successfully with Spring Boot 3.4.0. API Gateway registers with Eureka correctly:
Note: Services requiring MySQL (Sequence-Generator, Account-Service, etc.) fail to start without database - this is expected behavior.
Review & Testing Checklist for Human
This is a major version upgrade with significant breaking changes. CI passing is necessary but insufficient for confidence.
Recommended test plan:
/api/users/registerNotes
Link to Devin run: https://app.devin.ai/sessions/3ac39a08d1954d67ac964cf2c3388e79
Requested by: Sam Fertig (sam.fertig@cognition.ai) / @samfert-codeium