消费方代码
@FeignClient(name = “another-project-name”)
public interface demoClient {
@GetMapping(value = "/test")
Boolean test(@RequestParam("userID")String userID);
}
提供方代码
@RestController
public class DemoController {
@GetMapping(value = "/test")
Boolean test(@RequestParam("userID")String userID){
......
}
}
标题:FeignClient中每一个@RequestParam 都要设置value,否者报错
作者:sharkshen@outlook.com
地址:https://linkjb.com/articles/2020/08/20/1597891291163.html
Comments | 0 条评论