SpringCloud-OpenFeign中@PathVariable注解的注意事项
SpringCloud-Feign-@PathVariableFeign PathVariable annotation was empty on param 0.使用Feign的时候,如果参数中带有@PathVariable形式的参数,则需要使用value=""标明对应的参数,否则会抛出IllegalStateException异常如@GetMapping(value = "/payment/consumer/hystrix/ok/get/{id}") public String pay
原创
2020-09-08 20:35:42 ·
4168 阅读 ·
0 评论