为什么,谁说明一下
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
}
在myeclipse中新建一个Servlet,可以看到自动生成的代码中会抛出ServletException和IOException
doGet和doPost抛出的异常类型是一样的
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
什么为什么。。。