Feign自动拼接请求的URL
2021-01-05 14:28
标签:this client for ati auth 拼接 ping erb header @FeignClient("user-service") public interface UserFeignClient { @GetMapping(value="/user/{id}",headers={"Authorization=qwer"}) @Service @Autowired public List Feign自动拼接请求的URL 标签:this client for ati auth 拼接 ping erb header 原文地址:https://www.cnblogs.com/fswhq/p/13572509.html
User queryUserById(@PathVariable("id") Long id);
}
public class UserService {
private UserFeignClient userFeignClient;
List
ids.forEach(id -> {
users.add(this.userFeignClient.queryUserById(id));
});
return users;
}
}