我在休息体系结构中使用spring boot,在rest spring应用程序中使用requestparam是否仍然有用?
@GetMapping
public ResponseEntity<Page<Cars>> getCars(Integer carId){
....
}
@GetMapping
public ResponseEntity<Page<Cars>> getCars(@RequestParam(value = "carId", required = false) Integer carId){
....
}