Request method 'GET' not supported

错误原因:

GET请求不被允许。

解决方法:

1.从客户端入手。假设浏览器中的js用了ajax发起异步请求GET,将GET改为POST。

2.从服务端入手。Controller层的  @RequestMapping( method  =RequestMethod.POST ),将POST改为 GET

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-09-25
  • 2021-08-02
  • 2021-12-09
  • 2022-02-01
  • 2021-09-29
猜你喜欢
  • 2021-07-27
  • 2021-11-30
  • 2021-10-03
  • 2021-07-24
  • 2021-07-23
相关资源
相似解决方案