Java spring framwork - how to set content type?

Posted by Jon morgan on Stack Overflow See other posts from Stack Overflow or by Jon morgan
Published on 2010-04-09T08:30:08Z Indexed on 2010/04/09 8:33 UTC
Read the original article Hit count: 255

Filed under:


I have a spring action that I am rendering some json from the controller, at the minute its returning the contnet-type 'text/plain;charset=ISO-8859-1'.

How can I change this to be 'application/json'?

Thanks Jon

© Stack Overflow or respective owner

Related posts about java

Related posts about spring-mvc