Skip to content

chore(java-spring): bump Spring Boot to 4.0.6 and refresh deps#115

Merged
dacharyc merged 1 commit into
mainfrom
DOCSP-59938-main
May 28, 2026
Merged

chore(java-spring): bump Spring Boot to 4.0.6 and refresh deps#115
dacharyc merged 1 commit into
mainfrom
DOCSP-59938-main

Conversation

@dacharyc
Copy link
Copy Markdown
Collaborator

Summary

Same changes as #114 (targeting development), opened independently against main so this lands without waiting for the next developmentmain merge.

Proxy for DOCSP-59938 (Java driver v5.7.0 release). The Java Spring sample doesn't declare mongodb-driver-sync directly — it comes in transitively via spring-boot-starter-data-mongodb, so we bump the driver by upgrading Spring Boot. No GA Spring Boot release currently ships driver 5.7.0; 4.0.6 is the latest GA and brings the driver from 5.5.2 → 5.6.5.

This PR also refreshes other deps to keep the sample current and adapts to SB4 breaking changes.

Changes

  • Spring Boot: 3.5.134.0.6
  • dotenv: springboot3-dotenvspringboot4-dotenv (artifact rename)
  • springdoc-openapi: 2.8.133.0.3 (SB4-compatible major line)
  • langchain4j-voyage-ai: 1.11.0-beta191.15.0-beta25
  • testcontainers: junit-jupiter/mongodbtestcontainers-junit-jupiter/testcontainers-mongodb (testcontainers 2.0 module rename)
  • Add spring-boot-starter-webmvc-test — SB4 split @WebMvcTest out of spring-boot-starter-test; updated import to org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest
  • Add spring-boot-jackson2 to opt back into Jackson 2 — SB4 defaults to Jackson 3 (tools.jackson namespace). Renamed spring.jackson.*spring.jackson2.* and dropped write-dates-as-timestamps=false (Jackson 3 removed the enum value; ISO-8601 is now the default behavior)
  • Drop commons-lang3 CVE-2025-48924 workaround — SB4 BOM ships 3.19.0, which is past the 3.18.0 fix

Resulting driver versions

org.mongodb:mongodb-driver-sync:5.6.5
org.mongodb:bson:5.6.5
org.mongodb:mongodb-driver-core:5.6.5

Test plan

  • ./mvnw clean verify — 88 unit tests pass
  • ./mvnw test -Dtest=MongoDBSearchIntegrationTest — 5 integration tests pass against a live Atlas cluster (Search index creation, plot search, pagination, BSON DateTime → LocalDate round-trip)
  • Spring Boot starts cleanly; Swagger UI loads at /swagger-ui.html and OpenAPI spec serves at /api-docs (verified after the springdoc 2 → 3 bump)

JIRA: https://jira.mongodb.org/browse/DOCSP-59938
Companion PR: #114

Bumps the Java Spring Mflix sample to Spring Boot 4.0.6, which brings
the transitively-managed MongoDB Java Sync Driver from 5.5.2 to 5.6.5
(no GA Spring Boot release currently ships driver 5.7.0 — see
DOCSP-59938). Also refreshes other deps to keep the sample current.

- Spring Boot 3.5.13 -> 4.0.6
- springboot3-dotenv -> springboot4-dotenv (artifact rename)
- springdoc-openapi 2.8.13 -> 3.0.3 (SB4-compatible major line)
- langchain4j-voyage-ai 1.11.0-beta19 -> 1.15.0-beta25
- testcontainers junit-jupiter/mongodb -> testcontainers-junit-jupiter/
  testcontainers-mongodb (testcontainers 2.0 module rename)
- Add spring-boot-starter-webmvc-test (SB4 split @WebMvcTest out of
  spring-boot-starter-test) and update its import path
- Add spring-boot-jackson2 to opt back into Jackson 2 (SB4 defaults to
  Jackson 3); rename spring.jackson.* properties to spring.jackson2.*
  and drop write-dates-as-timestamps (Jackson 3 removed the feature
  and ISO-8601 is now the default)
- Drop commons-lang3 CVE-2025-48924 workaround (SB4 BOM ships 3.19.0,
  past the 3.18.0 fix)

JIRA: DOCSP-59938
@dacharyc dacharyc merged commit 8d85506 into main May 28, 2026
6 checks passed
@dacharyc dacharyc deleted the DOCSP-59938-main branch May 28, 2026 13:18
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.

2 participants