Problem background
Spring boot finished writing interface postman test 404, but debug breakpoint can be entered
the reason
Forgot to add to the method . @ResponseBody
Of course, it can also be defined directly on the controller class@RestController
. Indicates that the entire controller method writes the returned result into the response body. @RestController
The inside is actually @ResponseBody@Controller
a fit