chore(java-spring): bump Spring Boot to 4.0.6 and refresh deps#115
Merged
Conversation
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
cbullinger
approved these changes
May 28, 2026
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.
Summary
Same changes as #114 (targeting
development), opened independently againstmainso this lands without waiting for the nextdevelopment→mainmerge.Proxy for DOCSP-59938 (Java driver v5.7.0 release). The Java Spring sample doesn't declare
mongodb-driver-syncdirectly — it comes in transitively viaspring-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
3.5.13→4.0.6springboot3-dotenv→springboot4-dotenv(artifact rename)2.8.13→3.0.3(SB4-compatible major line)1.11.0-beta19→1.15.0-beta25junit-jupiter/mongodb→testcontainers-junit-jupiter/testcontainers-mongodb(testcontainers 2.0 module rename)spring-boot-starter-webmvc-test— SB4 split@WebMvcTestout ofspring-boot-starter-test; updated import toorg.springframework.boot.webmvc.test.autoconfigure.WebMvcTestspring-boot-jackson2to opt back into Jackson 2 — SB4 defaults to Jackson 3 (tools.jacksonnamespace). Renamedspring.jackson.*→spring.jackson2.*and droppedwrite-dates-as-timestamps=false(Jackson 3 removed the enum value; ISO-8601 is now the default behavior)commons-lang3CVE-2025-48924 workaround — SB4 BOM ships3.19.0, which is past the3.18.0fixResulting driver versions
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)/swagger-ui.htmland OpenAPI spec serves at/api-docs(verified after the springdoc 2 → 3 bump)JIRA: https://jira.mongodb.org/browse/DOCSP-59938
Companion PR: #114