我的解决方案是在spring mvc的配置文件中加一个消息转换机制
<mvc:annotation-driven>
<mvc:message-converters>
<bean class="org.springframework.Http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain;charset=UTF-8</value>
<value>text/html;charset=UTF-8</value>
<value>application/javascript;cahrset=UTF-8</value>
</list>
</property>
<bean>
</mvc:message-converters>
</mvc:annotation-driven>