在重写自动生成doPost()方法时,会自动生成super.doPost()。把他注释掉即可。
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
//super.doPost(req, resp);//这里注释掉
在重写自动生成doPost()方法时,会自动生成super.doPost()。把他注释掉即可。
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
//super.doPost(req, resp);//这里注释掉