Add the following configuration:
<Beanclass= "Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"> < Propertyname= "Messageconverters"> <List> <Beanclass= "Org.springframework.http.converter.ByteArrayHttpMessageConverter"/> <Beanclass= "Org.springframework.http.converter.StringHttpMessageConverter"> < Propertyname= "Supportedmediatypes"> <List> <value>text/html; Charset=utf-8</value> </List> </ Property> </Bean> <Beanclass= "Org.springframework.http.converter.ResourceHttpMessageConverter"/> <Beanclass= "Org.springframework.http.converter.xml.SourceHttpMessageConverter"/> <Beanclass= "Org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter"/> <Beanclass= "Org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter"/> </List> </ Property> </Bean>
Spring MVC Ajax Return value garbled