@RequestMapping("/dept/get/{id}")
Dept queryById(@PathVariable("id") Long id);
这里的@PathVariable注解中必须要加上参数,否则会报PathVariable annotation was empty on param 0错误。
@RequestMapping("/dept/get/{id}")
Dept queryById(@PathVariable("id") Long id);
这里的@PathVariable注解中必须要加上参数,否则会报PathVariable annotation was empty on param 0错误。