当前位置: 代码迷 >> 综合 >> 调用其他接口时报错:org.springframework.web.client.HttpClientErrorException$MethodNotAllowed: 405 null
  详细解决方案

调用其他接口时报错:org.springframework.web.client.HttpClientErrorException$MethodNotAllowed: 405 null

热度:21   发布时间:2024-01-31 02:06:52.0

解决方法:可能是你的controller层的方法的请求方式错误,Post或者Get请求(@PostMapping或@GetMapping)

                  如果不确定的话用@requestMapping准没错

  相关解决方案