spring - Spring3 MappingJacksonJsonView vs. MappingJacksonHttpMessageConverter -
spring 3 includes contentnegotiatingviewresolver can used decide on views based on aceept http header example.
this 1 way render json view, way (which provides mapping incoming request bodies objects) setup mappingjacksonhttpmessageconverter.
which 1 used best? there guidelines or hints?
thanx!
mappingjacksonhttpmessageconverter looks alike approach , in case want skip view resolution altogether.
httpmessageconverter allow do more xml,etcimages,etc , can unit test them :)
Comments
Post a Comment