...
|
...
|
@@ -54,13 +54,14 @@ |
|
|
<property name="supportedMediaTypes">
|
|
|
<list>
|
|
|
<value>text/plain;charset=UTF-8</value>
|
|
|
<value>text/html;charset=UTF-8</value>
|
|
|
</list>
|
|
|
</property>
|
|
|
</bean>
|
|
|
|
|
|
<!-- json转换器 application/json -->
|
|
|
<bean id="jsonConverter"
|
|
|
class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
|
|
|
<bean id="jsonConverter" class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
|
|
|
<property name="supportedMediaTypes" value="application/json;charset=UTF-8"/>
|
|
|
<property name="features">
|
|
|
<array value-type="com.alibaba.fastjson.serializer.SerializerFeature">
|
|
|
<value>DisableCircularReferenceDetect</value>
|
...
|
...
|
@@ -71,7 +72,7 @@ |
|
|
|
|
|
<!-- 启动SpringMVC的注解功能,完成请求和注解POJO的映射 -->
|
|
|
<mvc:annotation-driven>
|
|
|
<mvc:message-converters register-defaults="true">
|
|
|
<mvc:message-converters register-defaults="false">
|
|
|
<ref bean="stringConverter" />
|
|
|
<ref bean="jsonConverter" />
|
|
|
</mvc:message-converters>
|
...
|
...
|
|