Spring Boot RestTemplate 不适用于 Azure 函数

发布时间:2021-03-08 16:44

我是 Azure Functions 的新手。我们正在尝试将现有的 SpringBoot 应用程序转换为 Azure 函数。我正在使用 AzureSpringBootRequestHandler 来映射带有 Spring bean 的函数。现在的问题是旧代码中使用的restTemplate。

请有人建议我们如何将 restTemplate 与 Azure 函数或任何其他替代方法一起使用,以从 Spring Boot Azure 函数调用其他 Web 服务。

回答1