GET和POST的區別

原文鏈接:https://www.cnblogs.com/logsharing/p/8448446.html

實習時,在編寫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是什麼呢,這篇文章有很詳盡的說明:

https://www.cnblogs.com/logsharing/p/8448446.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章