[405] during [GET] to [http://user-server/user/queryByPage] [UserServiceApi#queryByPage(User)] 我就是我 2023-09-29 21:16 2阅读 0赞 ## openfeign调用问题: ## feign.FeignException$MethodNotAllowed: [405] during [GET] to [http://user-server/user/queryByPage] [UserServiceApi#queryByPage(User)]: [{ "timestamp":"2023-03-01T06:25:58.843+00:00","status":405,"error":"Method Not Allowed","path":"/user/queryByPage"}] ## 在使用feign调用是默认会把请求方式转为POST。 ## ![在这里插入图片描述][548835bf324549ce937b719e93166263.png] ## 我们把接口和API接口请求方式改成POST即可请求成功。 ## ![在这里插入图片描述][ea0b004e081f496a9ae459e03264dd49.png] [548835bf324549ce937b719e93166263.png]: https://img-blog.csdnimg.cn/548835bf324549ce937b719e93166263.png [ea0b004e081f496a9ae459e03264dd49.png]: https://img-blog.csdnimg.cn/ea0b004e081f496a9ae459e03264dd49.png
还没有评论,来说两句吧...