【_ 記 】Request method 'GET' not supported 异常分析

在做本地项目联调时遇到了 Request method 'GET' not supported问题。

造成原因:

@RequestMapping中已经设置了 ,或者默认设置了 请求方式为 POST

解决办法:

修改一下@RequestMapping(value = "/query", method = RequestMethod.GET, produces = { "application/json;charset=UTF-8" })中的method 请求方式即可。

发布了116 篇原创文章 · 获赞 116 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/o_o814222198/article/details/103421904