【发布时间】:2017-07-10 22:54:24
【问题描述】:
我想根据用户的特定请求从我的后端调用另一个 web-api。例如,我想调用 Google FCM 发送消息 api 来向特定用户发送事件消息。
改造有什么方法可以做到这一点吗?如果没有,我该怎么做?
【问题讨论】:
-
您不需要第三方库。 Spring 已经有了
RestTemplate -
问题标记为[resttemplate]
-
RestTemplate 将在未来的版本中被弃用,使用更现代的替代品 WebClient
标签: api spring-boot spring-data retrofit