...
|
...
|
@@ -49,19 +49,25 @@ |
|
|
</mvc:interceptors>
|
|
|
|
|
|
<!--字符串转换器-->
|
|
|
<bean id="stringConverter"
|
|
|
class="org.springframework.http.converter.StringHttpMessageConverter">
|
|
|
<bean id="stringConverter" 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/json;charset=UTF-8</value>
|
|
|
</list>
|
|
|
</property>
|
|
|
</bean>
|
|
|
|
|
|
<!-- json转换器 application/json -->
|
|
|
<bean id="jsonConverter" class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
|
|
|
<property name="supportedMediaTypes" value="application/json;charset=UTF-8"/>
|
|
|
<property name="supportedMediaTypes">
|
|
|
<list>
|
|
|
<value>text/plain;charset=UTF-8</value>
|
|
|
<value>text/html;charset=UTF-8</value>
|
|
|
<value>application/json;charset=UTF-8</value>
|
|
|
</list>
|
|
|
</property>
|
|
|
<property name="features">
|
|
|
<array value-type="com.alibaba.fastjson.serializer.SerializerFeature">
|
|
|
<value>DisableCircularReferenceDetect</value>
|
...
|
...
|
|