在做本地项目联调时遇到了 Request method 'GET' not supported
问题。
造成原因:
@RequestMapping中已经设置了 ,或者默认设置了 请求方式为 POST
解决办法:
修改一下
@RequestMapping(value = "/query", method = RequestMethod.GET, produces = { "application/json;charset=UTF-8" })
中的method 请求方式即可。
在做本地项目联调时遇到了 Request method 'GET' not supported
问题。
造成原因:
@RequestMapping中已经设置了 ,或者默认设置了 请求方式为 POST
解决办法:
修改一下
@RequestMapping(value = "/query", method = RequestMethod.GET, produces = { "application/json;charset=UTF-8" })
中的method 请求方式即可。