如何設置java後臺接收get或者post請求

Spring mvc [基於註解@RequestMapping(method=)限制請求爲get或者post] 默認是get,若是是get能夠不用寫 method=RequestMethod.GET 若是是post請求要加上 method=RequestMethod.POST request.getParameter("參數名");能夠直接獲取get請求的參數key對應的value
相關文章
相關標籤/搜索