Skip to content

Upgrade to Spring Boot 3.3.13 and Spring Cloud 2023.0.6#14

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1760739876-upgrade-spring-boot-3
Open

Upgrade to Spring Boot 3.3.13 and Spring Cloud 2023.0.6#14
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1760739876-upgrade-spring-boot-3

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Upgrade to Spring Boot 3.3.13 and Spring Cloud 2023.0.6

Summary

Upgraded all 7 microservices from Spring Boot 2.7.x to Spring Boot 3.3.13 with compatible Spring Cloud 2023.0.6. This is a major version upgrade that includes mandatory breaking changes for Spring Boot 3 compatibility:

Version Changes:

  • Spring Boot: 2.7.14/2.7.15 → 3.3.13
  • Spring Cloud: 2021.0.8 → 2023.0.6

Breaking Changes Addressed:

  • Migrated all javax.persistence.*jakarta.persistence.* (JPA entities)
  • Migrated javax.transaction.*jakarta.transaction.* (transaction annotations)
  • Updated GlobalExceptionHandler to use HttpStatusCode instead of HttpStatus in method signatures (Spring Boot 3 API change)
  • Removed deprecated @EnableEurekaClient annotations (auto-configuration replaces this in Spring Cloud 2022.x+)
  • Replaced Apache Commons IOUtils with Java 10+ Reader.transferTo() (dependency was dropped in Boot 3)
  • Removed unnecessary javax.ws.rs exclusion from User-Service

Services Modified:

  • Service-Registry ✓ (compiled + tested)
  • Sequence-Generator ✓ (compiled + tested)
  • API-Gateway ✓ (compiled + tested)
  • User-Service ✓ (compiled, tests require DB)
  • Account-Service ✓ (compiled, tests require DB)
  • Fund-Transfer ✓ (compiled, tests require DB)
  • Transaction-Service ✓ (compiled, tests require DB)

Review & Testing Checklist for Human

⚠️ CRITICAL: This PR compiles successfully but has NOT been runtime tested with the full microservices stack.

  • Start all services with MySQL and Keycloak running - Verify User-Service, Account-Service, Fund-Transfer, and Transaction-Service connect to databases successfully with the jakarta.* migration
  • Verify service discovery works - Test that services still register with Eureka after removing @EnableEurekaClient (should auto-configure)
  • Test Feign error handling - The IOUtils.toString()Reader.transferTo() change in FeignClientErrorDecoder needs verification with actual error responses from inter-service calls
  • Run end-to-end test flows - Test complete user journeys through API Gateway → services to ensure no subtle breaking changes
  • Check Keycloak integration - Verify the Keycloak admin client (v21.0.1) works with Spring Boot 3.3.13

Test Plan Recommendation

  1. Start Service-Registry first
  2. Start all other services and verify Eureka registration
  3. Test user creation/login through User-Service
  4. Test account operations through Account-Service
  5. Test fund transfers through Fund-Transfer service
  6. Verify all transactions are recorded in Transaction-Service
  7. Test error scenarios to verify Feign error decoder still works

Notes

  • All services compile successfully ✓
  • Tests pass for Service-Registry, Sequence-Generator, and API-Gateway ✓
  • Spring Cloud 2023.0.8 does not exist on Maven Central, corrected to 2023.0.6
  • Java 17 (already configured) is compatible with Spring Boot 3.3.13

Link to Devin run: https://app.devin.ai/sessions/8ecde93625564f258f04e2d54c7657a2
Requested by: Sam Fertig (@samfert-codeium)

- Upgraded all 7 microservices from Spring Boot 2.7.x to 3.3.13
- Updated Spring Cloud from 2021.0.8 to 2023.0.6 for Boot 3 compatibility
- Migrated all javax.persistence.* imports to jakarta.persistence.*
- Migrated javax.transaction.* imports to jakarta.transaction.*
- Removed deprecated @EnableEurekaClient annotations from API-Gateway, User-Service, and Transaction-Service
- Updated GlobalExceptionHandler in User-Service, Account-Service, and Fund-Transfer to use HttpStatusCode instead of HttpStatus
- Replaced Apache Commons IOUtils with Java standard library (Reader.transferTo) in all FeignClientErrorDecoder classes
- Removed unnecessary javax.ws.rs exclusion from User-Service pom.xml

All services compile successfully and tests pass for Service-Registry, Sequence-Generator, and API-Gateway.

Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants