实习时,在编写swagger在线文档时,遇到了一个疑问:
@RequestMapping(value = "/saveCmCust",method = RequestMethod.POST)
@RequestMapping(value = "/queryCmContact",method = RequestMethod.GET)
点进RequestMethod中,得到一个枚举
public enum RequestMethod { GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE; private RequestMethod() { } } |
那么,这里的GET和POST是什么呢,这篇文章有很详尽的说明: