Encountered the 405 problem again

Got the 405 problem again. still the same old problem

Occurrence process: I wrote some new code, started debugging, and reported 405 in /oauth/token.

At that time, I remembered the last lesson after being stunned for 5 seconds, and quickly checked the newly written interface.

Sure enough, another @PutMapping() path was not written.

Change it to @PutMapping("/path") and restore it.

Lesson: Either don't write @RequestMapping, or write it all, and write the path together, otherwise 405

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325688155&siteId=291194637
405