Skip to content

Spring Boot 4#209

Open
anderslindho wants to merge 10 commits intomasterfrom
spring-boot-4
Open

Spring Boot 4#209
anderslindho wants to merge 10 commits intomasterfrom
spring-boot-4

Conversation

@anderslindho
Copy link
Copy Markdown
Contributor

No description provided.

Pin elasticsearch-java to 8.18.0 (defer ES 9 migration) and
testcontainers to 1.19.3 (defer TC 2.x migration). Drop now-BOM-managed
version pins for junit-jupiter and jackson-core.
@anderslindho anderslindho self-assigned this Apr 14, 2026
@anderslindho anderslindho changed the title Spring boot 4 Spring Boot 4 Apr 14, 2026
Rename spring-boot-starter-web to spring-boot-starter-webmvc (old name
removed). Remove <executable>true</executable> from the Maven plugin
(embedded launch scripts dropped; java -jar still works). Fix
HttpConnectorConfig: TomcatServletWebServerFactory and
ServletWebServerFactory moved to new packages; rename
addAdditionalTomcatConnectors to addAdditionalConnectors.
springdoc 2.x is incompatible with Spring Framework 7. 3.0.3 is the
first release tested against SB 4.0.5. Add spring-boot-starter-webmvc-test
which Spring Boot 4 requires for @WebMvcTest and @AutoConfigureMockMvc
to resolve (test slice module split).
Remove security.require-ssl (dropped in SB4) and
spring.http.log-request-details (moved) from all property files.
Replace com.fasterxml.jackson.* with tools.jackson.* in non-ES code
(InfoService, ArchiverService, AAChannelProcessor, ChannelProcessor,
PopulateDBConfiguration). Use JsonMapper builder pattern for ObjectMapper
construction. Catch JacksonException instead of JsonProcessingException.

ElasticConfig and the three repositories retain Jackson 2 ObjectMapper
because elasticsearch-java 8.x JacksonJsonpMapper requires Jackson 2;
add comments marking these for migration when ES 9 lands.

Update tests: fix AAChannelProcessorTest for Jackson 3 alphabetical field
ordering; update ArchiverServiceTest for renamed exception type.
Spring Boot 4 moved @WebMvcTest and @AutoConfigureMockMvc from
org.springframework.boot.test.autoconfigure.web.servlet.*
to org.springframework.boot.webmvc.test.autoconfigure.*
as part of the web module modularisation. Update 29 test files.
SB4's modular structure and JaCoCo instrumentation push container startup
past the 30 s health-check interval, causing Testcontainers to time out
before a second check can run.

- compose.yml: add start_period: 60s so early failures don't burn retries
- ITUtil: raise TC startup timeout from 60 s to 3 minutes
@github-actions
Copy link
Copy Markdown

Overall Project 12.95% -0.16%
Files changed 0%

File Coverage
ArchiverService.java 90.16% 🍏
TagRepository.java 0.55% 🍏
PropertyRepository.java 0.54% 🍏
ChannelRepository.java 0.26% 🍏
InfoService.java 0% -11.65%
ElasticConfig.java 0% 🍏
PopulateDBConfiguration.java 0% 🍏
HttpConnectorConfig.java 0% -43.33%
AAChannelProcessor.java 0% 🍏

@sonarqubecloud
Copy link
Copy Markdown

@anderslindho anderslindho marked this pull request as ready for review April 16, 2026 08:36
@github-actions
Copy link
Copy Markdown

Overall Project 12.95% -0.16%
Files changed 0%

File Coverage
ArchiverService.java 90.16% 🍏
TagRepository.java 0.55% 🍏
PropertyRepository.java 0.54% 🍏
ChannelRepository.java 0.26% 🍏
InfoService.java 0% -11.65%
ElasticConfig.java 0% 🍏
PopulateDBConfiguration.java 0% 🍏
HttpConnectorConfig.java 0% -43.33%
AAChannelProcessor.java 0% 🍏

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.

1 participant