一般参数写死
HttpServletRequest request
区分请求
//获取请求方式
String method = request.getMethod();
if ("POST".equals(method)){
}else if ("GET".equals(method)){
}
原文链接:https://www.dandelioncloud.cn/article/details/1360632322516914177