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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -