Pardon me for posting this noob question, but I have been debugging this problem for quite awhile now. I\'m having a little problem trying to get the response to return the
Adding produces = MediaType.APPLICATION_XML_VALUE to the RequestMapping and @XmlRootElement to the top of your model object should works
@RequestMapping(value = "/mylink", method = RequestMethod.GET, produces = MediaType.APPLICATION_XML_VALUE)
public SomeObject doIt(){
return new SomeObject();
}
@XmlRootElement
public class SomeObject {
}