Request method 'GET' not supported

Request method 'GET' not supported

错误原因:

GET请求不被允许。

解决方法:

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

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

 

posted on 2018-08-30 14:49  乐之者v  阅读(8858)  评论(0编辑  收藏  举报

导航