Request method ‘POST/GET‘ not supported

 说明接口对当前请求方式不支持,检查controller中接口的请求方式与postman中接口的请求方式是否对应。

  1. controller中接口为GetMapping,但postman中接口请求类型为POST。
  2. controller中接口为PostMapping,但postman中接口 请求类型为GET。

猜你喜欢

转载自blog.csdn.net/qq_44973310/article/details/128247274
今日推荐