修改步骤
1.File -> Setting -> Editor -> File and Code Templates -> Other -> Web -> java code Templates -> ServletClass.java
修改方法
1.将doGet方法调到doPost方法前
2.在doPost方法中手动输入:
doGet(request,response);
如图所示:
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {
}
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {
doGet(request,response);
}