Spring MVC JSON配置
来源:互联网 发布:python自动安装pip 编辑:程序博客网 时间:2024/06/10 21:51
<!-- Spring MVC JSON配置 -->
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<!-- <bean id="fastJsonHttpMessageConverter" class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter"> -->
<bean id="fastJsonHttpMessageConverter" class="sy.util.FastJsonHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value><!-- 避免IE出现下载JSON文件的情况 -->
</list>
</property>
</bean>
</list>
</property>
</bean>
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<!-- <bean id="fastJsonHttpMessageConverter" class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter"> -->
<bean id="fastJsonHttpMessageConverter" class="sy.util.FastJsonHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value><!-- 避免IE出现下载JSON文件的情况 -->
</list>
</property>
</bean>
</list>
</property>
</bean>
0 0
- Spring MVC JSON配置
- spring mvc json jackson 配置
- spring mvc 返回json 几个关键配置
- spring mvc 返回json的配置
- Spring MVC配置response自动转json
- spring mvc 返回json字符串的配置
- 在spring-mvc中使用json配置
- spring mvc 4.x +json +maven 配置
- spring mvc 返回json的配置
- spring-mvc注解(mvc:annotation-driven,JSON,配置详解)
- Spring MVC 3.1多视图协商配置(json、xml、freemarker)
- Spring MVC 多视图协商配置(json、xml、freemarker)
- Spring MVC 3.1多视图协商配置(json、xml、freemarker)
- spring MVC 配置返回JSON格式的数据模型
- Spring MVC 返回 xml json pdf 数据的配置方法
- Spring MVC返回json数据的配置方式
- Spring Mvc ajax和json数据格式的配置
- Spring MVC Rest Json,XML多视图解析 配置
- DBus 入门与应用--基本概念 上(C API 级别的使用观点)
- spring读取.properties
- 反渗透设备:反渗透设备滤化功能的实现
- SAS 观测样本数
- php及xdebug使用小结
- Spring MVC JSON配置
- jsp中使用equals()判断字符串是否相等时出现的问题(.equals("1")出现的异常)
- 指针和数组(下)
- Hbase rowkey热点问题
- Multiple dex files define 的问题
- centos6.x查找文件安装目录
- ACM模板 素数打表
- android video
- 开源SVM库libSVM介绍