if("GET".equals(request.getMethod())){
        System.out.println("提交方式是GET");         

}else if("POST".equals(request.getMethod())){

          System.out.println("提交方式是POST");
}