spring配置json
来源:互联网 发布:python 读写文本文件 编辑:程序博客网 时间:2024/06/05 04:40
<bean id="jsonConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <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> <bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"> <property name="messageConverters"> <list> <ref bean="jsonConverter" /> </list> </property> </bean>
将这个配置文件加入到spring配置文件中,即可,将数据转换为json
0 0
- Spring MVC JSON配置
- spring配置json
- spring 3.1 m 配置json
- spring mvc json jackson 配置
- spring 配置controller返回json
- spring mvc3.2.4生成的json配置
- Spring 配置Response自动转换为JSON
- spring mvc 返回json 几个关键配置
- spring mvc 返回json的配置
- Spring MVC配置response自动转json
- spring mvc 返回json字符串的配置
- Spring 4.X 版本 json配置记录
- 在spring-mvc中使用json配置
- spring mvc 4.x +json +maven 配置
- spring mvc 返回json的配置
- spring boot 配置fastjson解析json
- spring json
- Spring--- json
- 诊断并解决 ORA-4030 错误 (Doc ID 1548826.1)
- 收藏网站25
- iOS C语言6_函数
- tomcat出现unable to process deployment descriptor for context 'null'警告
- 公众号接收用户消息—《微信公众平台开发实战与应用案例》—陈小龙
- spring配置json
- 收藏网站26
- Android layer type与WebView白屏以及WebView不随动画而动的问题
- 解决ScrollView嵌套ListView显示不全问题
- 收藏网站27
- Notifiacation/setLatestEventInfo deprecated
- web2.0之ajax
- 编译原理系列之一
- Django数据API