when controller method return is @responsebody , even if i put
JSON in @RequestBody
/@ResponseBody
is handled by MappingJacksonHttpMessageConverter
which is configured in AnnotationMethodHandlerAdapter.messageConverters
.
The easy way to configure it without interference with other features is to create a BeanPostProcessor
to intercept creation of AnnotationMethodHandlerAdapter
, see, for example, here.