HTTP Status 405 - HTTP method POST is not supported by this URL java servlet

后端 未结 5 2095
野性不改
野性不改 2020-12-03 10:21

I am having trouble getting the page to work. I have my form method to post and my servlet implements doPost(). However, it keeps showing me that I am not suppo

5条回答
  •  广开言路
    2020-12-03 11:18

    It's because you're calling doGet() without actually implementing doGet(). It's the default implementation of doGet() that throws the error saying the method is not supported.

提交回复
热议问题