我的控制器目前有两个@GetMapping方法,我计划添加更多的@GetMapping方法,以涵盖我在上面的所有查询@RequestMapping("/cars")public class CarController {
public List<CarResponse> getAllCars() {
// handleList<CarResponse&
因为可以访问方法的参数名称。在春天我们可以写 public void get(@PathVariable long id) {... @GetMapping("/rest/files")
public void get(@RequestHeader String Host) {...如果我们有一个与java命名约定<