SpringMVC 之 @PatchMapping

Internet 标准 https://tools.ietf.org/html/rfc5789

Abstract
   Several applications extending the Hypertext Transfer Protocol (HTTP)
   require a feature to do partial resource modification.  The existing
   HTTP PUT method only allows a complete replacement of a document.
   This proposal adds a new HTTP method, PATCH, to modify an existing
   HTTP resource.

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in Section 2 of RFC 5741.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   http://www.rfc-editor.org/info/rfc5789.
   
---------------------------------谷歌翻译.直译------------------------------------
HTTP的PATCH方法

抽象

   扩展超文本传输​​协议(HTTP)的几个应用程序
   需要一个功能来进行部分资源修改。现有的
   HTTP PUT方法仅允许完全替换文档。
   此提议添加了一个新的HTTP方法PATCH来修改现有方法
   HTTP资源。

本备忘录的状态

   这是Internet标准跟踪文档。

   本文档是Internet工程任务组的产品
   (IETF)。它代表了IETF社区的共识。它有
   获得公众审查并已获批准出版
   互联网工程指导小组(IESG)。更多信息RFC 5741的第2节 
   提供了Internet标准。

   有关本文档当前状态的信息,任何勘误表,
   以及如何提供反馈可以在
   http://www.rfc-editor.org/info/rfc5789。

 

http method请求方式.常用的就是get post delete put;

Patch方式是对put方式的一种补充;

put方式是可以更新.但是更新的是整体.patch是对局部更新;

  • 8
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值