对于HTTP/1.1,父类HttpServlet的doGet或doPost等方法的默认实现是返回状态代码为405的HTTP错误表示
对于指定资源的请求方法不被允许。
解决方法:
在扩展的Servlert中重写doGet或doPost等方法来处理请求和响应时不要调用父类HttpServlet的doGet或doPost等方法,即去掉super.doGet(request, response)和super.doPost(request, response);