Skip to content

Upgrade Spring Boot 2.2.6 -> 3.4.1 (Java 17)#23

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

Upgrade Spring Boot 2.2.6 -> 3.4.1 (Java 17)#23
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1780683415-spring-boot-3-upgrade

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jun 5, 2026

Copy link
Copy Markdown

Summary

Major version upgrade of the monolith module from Spring Boot 2.2.6.RELEASE to 3.4.1, the latest stable 3.x. This pulls in Spring Framework 6, Hibernate 6.6, and Jakarta EE, all managed transitively via the parent BOM. mvn clean install passes with all 7 existing tests green on Java 17.

monolith/pom.xml

  • parent 2.2.6.RELEASE3.4.1; java.version 1117
  • Added spring-boot-starter-validation (validation is no longer bundled with -web since Boot 2.3, and the entities/DTOs use jakarta.validation constraints)
  • org.apache.httpcomponents:httpclient (4.x) → org.apache.httpcomponents.client5:httpclient5 (5.x, version managed by the Boot 3 BOM; the old 4.x artifact is no longer in the BOM)

Jakarta EE namespace migration (javax.*jakarta.*) across all entities/DTOs:

  • javax.persistence.*jakarta.persistence.*
  • javax.validation.*jakarta.validation.*

Apache HttpClient 4 → 5 in SplitTheMonolithApplication:

-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.impl.client.HttpClientBuilder;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;

The RestTemplate bean wiring is unchanged — Spring 6's HttpComponentsClientHttpRequestFactory accepts the HttpClient 5 CloseableHttpClient.

Not needed: no Spring Security config, no spring.factories, no spring.redis.*/spring.elasticsearch.*/Actuator properties to rename. application.properties only contained spring.jpa.open-in-view, server.port, and app-specific keys, all still valid in 3.x.

README technologies line updated to "Java 17, Spring Boot 3.x".

Link to Devin session: https://app.devin.ai/sessions/6e501b21ad1f48b08cd9fe0229179a8f
Requested by: @davidbean-hash


Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

Co-Authored-By: david.bean <david.bean@cognition.ai>
@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, CI, and merge conflict 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