Spring MVC的自动转换功能 HttpMessageConverter
来源:互联网 发布:软件下载系统网站源码 编辑:程序博客网 时间:2024/06/16 09:41
[-]
- StringHttpMessageConverter that can read and write Strings from the HTTP request and response
- FormHttpMessageConverterthat can read and write form data from the HTTP request and response
- ByteArrayMessageConverterthat can read and write byte arrays from the HTTP request and response
- MarshallingHttpMessageConverterXML的转换需要使用Spring的 Marshaller 和 Unmarshaller
- MappingJacksonHttpMessageConverterJSON的转换
- 默认起用的MVC注解功能
<<span class="hl-tag" style="color: rgb(63, 127, 127);">bean</span> <span class="hl-attribute" style="color: rgb(127, 0, 127);">class</span>=<span class="hl-value" style="color: rgb(42, 0, 255);">"org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"</span>>
StringHttpMessageConverter: that can read and write Strings from the HTTP request and response.
FormHttpMessageConverter:that can read and write form data from the HTTP request and response.
ByteArrayMessageConverter:that can read and write byte arrays from the HTTP request and response.
MarshallingHttpMessageConverter:XML的转换需要使用Spring的
Marshaller
和Unmarshaller.
MappingJacksonHttpMessageConverter:JSON的转换.
SourceHttpMessageConverter:能够读/写来自HTTP的请求与响应的javax.xml.transform.Source
,支持
DOMSource
,SAXSource
, 和StreamSource
的XML格式BufferedImageHttpMessageConverter:that can read and write
起用JSON转换功能java.awt.image.BufferedImage
from the HTTP request and response
MappingJacksonHttpMessageConverter能够将POJO对象自动转换为JSON对象需要依赖JSON对象的处理JAR包
jackson-core-lgpl.jar
jackson-mapper-lgpl.jar
下载地址:
http://jackson.codehaus.org/欢迎一起学习:QQ:82374126
0 0
- Spring MVC的自动转换功能 HttpMessageConverter
- Spring MVC的自动转换功能 HttpMessageConverter
- Spring MVC的自动转换功能 HttpMessageConverter
- Spring MVC的自动转换功能 HttpMessageConverter
- Spring MVC的自动转换功能 HttpMessageConverter
- spring mvc HttpMessageConverter使用
- 使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- 使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- 使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- 使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- 使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- Spring MVC4.1-Spring MVC的配置(含自定义HttpMessageConverter)
- spring-mvc 请求body 的处理方式 HttpMessageConverter
- Spring MVC的HTTP请求信息转换器HttpMessageConverter
- String3 MVC-----使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- SPRING MVC3.2案例讲解--使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- SPRING MVC3.2案例讲解--使用 Spring 3 MVC HttpMessageConverter 功能构建 RESTful web 服务
- Interleaving String -- leetcode
- matlab注释的方法
- 二叉树的遍历
- javascript学习实录 之六(div开关闭合效果实例)
- 导航栏背景图片
- Spring MVC的自动转换功能 HttpMessageConverter
- POJ 3321 Apple Tree(树状数组)
- javascript学习实录 之四(DOM简介)
- javascript学习实录 之三(对象原型引用prototype
- 数据结构 - 动态查找
- 数据库的垂直划分和水平划分
- javascript学习实录 之九(选择样式,改变文字效果)
- RANSAC(随机采样一致算法)原理及openCV代码实现
- Android 实现拨打电话功能