1 <mvc:annotation-driven>
 2         <mvc:message-converters register-defaults="true">
 3             <bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter4" >
 4                 <property name="supportedMediaTypes">
 5                     <list>
 6                         <value>text/html;charset=UTF-8</value>
 7                         <value>application/json</value>
 8                     </list>
 9                 </property>
10                 <property ref="fastJsonConfig" name="fastJsonConfig">
11                 </property>
12             </bean>
13         </mvc:message-converters>
14     </mvc:annotation-driven>
15     <bean >
16         <property name="serializerFeatures">
17             <list>
18                 <value>DisableCircularReferenceDetect</value>
19             </list>
20         </property>
21         <property name="dateFormat" value="yyyy-MM-dd HH:mm:ss"></property>
22     </bean>

 

相关文章:

  • 2021-07-15
  • 2022-12-23
  • 2021-11-20
  • 2022-01-31
  • 2021-08-22
  • 2022-02-12
  • 2021-10-24
  • 2021-06-14
猜你喜欢
  • 2021-08-09
  • 2022-12-23
  • 2021-11-14
  • 2021-11-08
  • 2021-08-29
  • 2022-12-23
  • 2021-07-04
相关资源
相似解决方案