Table of Contents
一、fastjson
<mvc:annotation-driven>
<mvc:message-converters register-defaults="false">
<!-- 去除返回字符串时的引号 -->
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<constructor-arg value="UTF-8"/>
<!-- 避免出现乱码 -->
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
<!-- Fastjson 避免IE执行AJAX时,返回JSON出现下载文件 -->
<bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
<property name="supportedMediaTypes"&