Who sets response content-type in Spring MVC (@ResponseBody)

I found solution for Spring 3.1. with using @ResponseBody annotation.
Here is example of controller using Json output:

@RequestMapping(value = "/getDealers", method = RequestMethod.GET, 
produces = "application/json; charset=utf-8")
@ResponseBody
public String sendMobileData() {

}

Leave a Comment