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

来源:互联网 发布:手机上开淘宝店怎么开 编辑:程序博客网 时间:2024/06/16 06:18

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


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


!!!

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

阅读全文
0 0