扯扯SpringBoot中@PathVariable @RequestParam @RequestBody
@PathVariable@PathVariable能使传过来的参数绑定到路由上,这样比较容易写出restfulapi.举个栗子:@GetMapping(value="/{id}")publicApiResponsegetUser(@PathVariableStringid){returnApiResponse.getDefaultResponse(userService.getUserById(