I know how to get all the registered message converters, but is there a way to get the HttpMessageConverter
for the request body of the current request, either in HandlerMethodArgumentResolver
, RequestBodyAdviceAdapter
or in the controller itself?
In RequestBodyAdviceAdapter
you can get the type of the converter but not the instance itself.