deletemapping报错.HttpRequestMethodNotSupportedException: Request method 'GET' not supported
时间: 2023-08-26 19:06:21 浏览: 123
java解决405 - HTTP method GET is not supported by this URL
4星 · 用户满意度95%
引用中的错误信息"Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]"表示使用了不支持的请求方法,即GET方法,而实际上应该使用DELETE方法。
要解决这个问题,您可以在对应的方法上使用@DeleteMapping注解来<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST‘ not ...](https://blog.csdn.net/weixin_45410366/article/details/125613217)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘GET‘ not...](https://blog.csdn.net/qq_44347175/article/details/125697957)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文