spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
55.28k stars 37.62k forks source link

Add `BodyInserters.fromValue(T, ParameterizedTypeReference<T>)` and related APIs #32713

Closed sdeleuze closed 2 weeks ago

sdeleuze commented 2 weeks ago

As initially raised in #32652, ServerResponse.BodyBuilder#bodyValue should allow to specify the generic type to use for serialization in Kotlin, but also in Java. So this issue is going to introduce: