feign声明@PathVariable
@FeignClient(name = "TUZI")
public interface TuziClientService{
@GetMapping("/demo/get/{id}")
Tuzi get(@PathVariable(value="id") int id);//value需要显式声明,否则报错
}
@PathVariable必须要显示声明value
2024-03-04 20:56:18
@FeignClient(name = "TUZI")
public interface TuziClientService{
@GetMapping("/demo/get/{id}")
Tuzi get(@PathVariable(value="id") int id);//value需要显式声明,否则报错
}
@PathVariable必须要显示声明value