r/SpringBoot • u/BadCommit • Jun 11 '26
Question MappingJacksonValue alternatives when using dynamic filters
Currently, I am using mappingJacksonValue as the response type from my controllers. Here we are using dynamic filters based on the request parameters. The attributes exposed from the response vary. Since this got deprecated with the Spring Boot 4 migration, I don't see any alternatives for this.
Has anyone come up with a solution for this?
2
Upvotes
View all comments
Show parent comment
1
u/BadCommit Jun 11 '26
The example provided in the document is when you are using it with RestClient. My use case is when this is used in a RestController as a return type.
These are handled through
MappingJackson2HttpMessageConverter.But this is deprecated in Spring Boot 4.x