7 questions
1
vote
0
answers
122
views
Spring Boot 4 + Hibernate 7: Cannot persist JsonNode to PostgreSQL jsonb (InvalidDefinitionException)
I am trying to persist a JsonNode field into a PostgreSQL jsonb column using Spring Boot 4 (Hibernate 7).
Entity
import tools.jackson.databind.JsonNode;
import jakarta.persistence.*;
import org....
2
votes
2
answers
218
views
How to define ObjectMapper based on autoconfiguration?
In my new application, I'm using Spring Boot 4.
I noticed that ObjectMapper is now under
import tools.jackson.databind.ObjectMapper;
so I'd like to understand how to modify this bean that I was using ...
0
votes
1
answer
156
views
NoSuchMethodError: ExtensionContext$Store.computeIfAbsent with springboot 4.0.0
I am encountering a
java.lang.NoSuchMethodError
when running my integration tests using Spring Boot and Testcontainers.
The error specifically mentions:
java.lang.NoSuchMethodError: 'java.lang.Object ...
0
votes
1
answer
113
views
SpringBoot - converting from Jackson2 to Jackson3 - missing type id property '@class'
I have a projecto that was using SpringBoot 3.3.0 with Jackson2 dependency, after I changed to SpringBoot 4.0.2 with Jackson3 dependency the code stop to work.
Jackson2:
import com.fasterxml.jackson....
1
vote
1
answer
482
views
Spring Boot 4 removed HttpMessageConvertersAutoConfiguration - recommended migration for server-side MessageConverters?
Context
In Spring Boot 3.x we relied on:
org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration
to provide HttpMessageConverter wiring.
After upgrading to Spring Boot 4:
...
1
vote
0
answers
78
views
WebTestClient mockJwt not applied after Spring Boot 4.0.0 upgrade – method level security fails with 403
I am using WebTestClient for integration testing in a Spring WebFlux application with method-level security enabled (e.g. @PreAuthorize).
After upgrading from Spring Boot 3.5.7 to 4.0.0, my ...
0
votes
3
answers
372
views
Spring Boot 4 / Spring Security 6 – @WithMockUser returns 401 Unauthorized in MockMvc test
I’m setting up a project using Spring Boot 4.0.2 (Spring Security 6) and I’m getting a 401 Unauthorized in a MockMvc integration test, even though I’m using @WithMockUser(roles = "ADMIN").
I ...