Server returned HTTP response code: 405 for URL:

A super detailed tutorial: springboot integrates mybatis plus>>>

Copyright notice: This article is the original article of the blogger, following the CC 4.0 by-sa copyright agreement. Please attach the link of the original source and this notice for reprint
link to this article: 36213608/article/details/72829056
recently, when doing the interface callback demo in HTTP, when connecting the IP address, the console reported an exception, as shown in the figure:

We searched HTTP 405 on the Internet to find out what the error is: 405 means that this method is not allowed. For the resource identified by the request, the method specified in the request line is not allowed

Knowing this reason, I looked at whether my request method was consistent with the method allowed by the other party’s interface. As expected, it was inconsistent. One was post and the other was get. If the method is inconsistent, change the request method

The status code 400 indicates an incorrect request, and the server does not understand the syntax of the request

The status code 403 indicates that access is prohibited original link: 36213608/article/details/72829056

Similar Posts: