mardi 3 mars 2015

How to return indented XML using Spring mvc:annotation-driven and ResponseBody

I've implemented a simple controller that returns a converted XML object using JAXB. Problem is it's not formatted (indented). I've searched and found that I could configure through the usage of , but I'm having a lot of trouble finding good documentation to configure Jaxb2RootElementHttpMessageConverter.


Aucun commentaire:

Enregistrer un commentaire