Building a RESTful api with Spring note2

来源:互联网 发布:win10分屏多任务软件 编辑:程序博客网 时间:2024/05/22 06:39

The Default Message Converters

Client-Server Communication – JSON only

1、High Level Content Negotiation

2、@ResponseBody

example

3、RequestBody

example

4、Using Spring’s RestTemplate with Http Message Converters

Retrieving a Resource with application/json Accept header

Update a Resource with XML Content-Type
原创粉丝点击