spring mvc controller requestmapping parameter binding annotation rules and default rules

Binding: assign the information in the request to the method parameters according to the principle of name matching. 1. Request path variable @ PathVariable Get the parameters from the request URI, excluding the query string, and? After the number. @RestController @RequestMapping("/user") public class UserAction { @GetMapping("/{id}") ...

Posted by PaTTeR on Fri, 07 Jan 2022 02:38:24 +0100