Skip to content

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

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

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

Conversation

@dacharyc
Copy link
Copy Markdown
Collaborator

Summary

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

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
@tmcneil-mdb
Copy link
Copy Markdown
Collaborator

LGTM! All tests passing and no visible regressions from manual testing.

I think because you have write access you don't need approval to merge.

@dacharyc dacharyc merged commit f401dd9 into development May 28, 2026
2 checks passed
@dacharyc dacharyc deleted the DOCSP-59938 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