HTTP method POST is not supported by this URL解决方案

在学习慕课网的 servlet 教程的过程中,使用post的转跳页面会提示这个错误


后来百度了才知道是重写的 doPost() 方法中的 super() 导致的


!!!

只需要把这个 super.doPost(req,resp) 注释掉或者删掉就好了

posted @ 2017-12-17 19:24  link98  阅读(2695)  评论(0)    收藏  举报