Request handler method signature
- Spring MVC binds the HTTP request information to the corresponding input parameters of the processing method by analyzing the signature of the processing method.
- Spring MVC's restrictions on how controllers handle method signatures are very loose, and methods can be signed almost any way you like.
- When necessary, you can annotate the method and method input parameters with corresponding annotations (@PathVariable@RequestParam@RequestHeader, etc.), and the SpringMVC framework will bind the HTTP request information to the corresponding method input parameters, and make according to the return value type of the method. corresponding follow-up processing.