配置Feign的时候报错PathVariable annotation was empty on param 0. 是在声明Feign接口方法时候,使用@PathVariable注解没有带有value值。 将下面代码: @GetMapping("/dept/{id}") public Dept get(@PathVariable Long id); 修改为: @GetMapping("/dept/{id}") public Dept get(@PathVariable(value="id") Long id); 修改之后,成功启动,为报错。