Authored by unknown

fix context

@@ -54,13 +54,14 @@ @@ -54,13 +54,14 @@
54 <property name="supportedMediaTypes"> 54 <property name="supportedMediaTypes">
55 <list> 55 <list>
56 <value>text/plain;charset=UTF-8</value> 56 <value>text/plain;charset=UTF-8</value>
  57 + <value>text/html;charset=UTF-8</value>
57 </list> 58 </list>
58 </property> 59 </property>
59 </bean> 60 </bean>
60 61
61 <!-- json转换器 application/json --> 62 <!-- json转换器 application/json -->
62 - <bean id="jsonConverter"  
63 - class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter"> 63 + <bean id="jsonConverter" class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
  64 + <property name="supportedMediaTypes" value="application/json;charset=UTF-8"/>
64 <property name="features"> 65 <property name="features">
65 <array value-type="com.alibaba.fastjson.serializer.SerializerFeature"> 66 <array value-type="com.alibaba.fastjson.serializer.SerializerFeature">
66 <value>DisableCircularReferenceDetect</value> 67 <value>DisableCircularReferenceDetect</value>
@@ -71,7 +72,7 @@ @@ -71,7 +72,7 @@
71 72
72 <!-- 启动SpringMVC的注解功能,完成请求和注解POJO的映射 --> 73 <!-- 启动SpringMVC的注解功能,完成请求和注解POJO的映射 -->
73 <mvc:annotation-driven> 74 <mvc:annotation-driven>
74 - <mvc:message-converters register-defaults="true"> 75 + <mvc:message-converters register-defaults="false">
75 <ref bean="stringConverter" /> 76 <ref bean="stringConverter" />
76 <ref bean="jsonConverter" /> 77 <ref bean="jsonConverter" />
77 </mvc:message-converters> 78 </mvc:message-converters>