Dubbo启动,调用方法失败【问题:调用超时】
生活随笔
收集整理的這篇文章主要介紹了
Dubbo启动,调用方法失败【问题:调用超时】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在一個調用dubbo里面的一個方法getAllSku時,顯式調用超時。
com.alibaba.dubbo.rpc.RpcException:Failed to invoke the method getAllSku in the service com.atguigu.gmall.service. SkuService. Tried 3 times of the providers [10.160.190.204:53684] (1/1) from the registry 10.160.190.204:2181on the consumer 192.168.116.1 using the dubbo version 2.6.0. Last error is:Invoke remote method timeout. method: getAllSku,provider: dubbo://10.160.190.204:53684/com.atguigu.gmall.service解決辦法:在springboot的配置文件application.properties中設置超時時間
# 設置超時時間 spring.dubbo.consumer.timeout=600000 # 設置是否檢查服務存在 spring.dubbo.consumer.check=false總結
以上是生活随笔為你收集整理的Dubbo启动,调用方法失败【问题:调用超时】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java与ElasticSerach的整
- 下一篇: Dubbo启动时qos-server c