可以查看地址栏状态,如果后面挂参数说明是get请求。如:?push=core&group=1这样的字眼就是get请求。
使用request.getMethod()方法
get请求是servlet的doget方法进来,post请求是从servlet的dopost方法进来的
看地址栏是不是传递参数