|
|
@ -58,7 +58,7 @@ public class DeptAddStuPunchServlet extends HttpServlet { //定义一个继承
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
|
|
|
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
|
|
|
doGet(req, resp);//处理POST请求:重写doPost方法,直接调用doGet,统一处理GET和POST请求。
|
|
|
|
doGet(req, resp);//处理POST请求:重写doPost方法,直接调用doGet,统一处理GET和POST请求
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|