下面是我如何在Service中编码,以便使用另一个rest端点suspend fun getCoroutine(){
return response.get().body() // suspend and return String not a Future我希望从我的控制器中调用我了解到,暂停功能只能从anotehr悬挂函数或Cor
我正在尝试使用Spring-client中的RestTemplate。 我不能使用RestTemplate,因为这个类没有bean。/latest/guide/index.html#factories 但是我仍然不知道如何在Java语言上实现它 这是我的错误日志。Ensure the class is declared a bean and if you are using Java or Kotlin make sure you have enabled annotatio