今天,启动,开始写项目。在一个调用里面的一个方法时,程序一直调用,每次显示报红。很难搞。问题代码这么烦,已经搞崩心态了扔百度翻译去。,真智障靠,方法调用超时。解决办法:设置超时时间设置是否检查服务存在。。。。。。。
        
        
     
    
    
    
    
    
    
    
 
    
    
    
    今天,启动dubbo,开始写项目。
在一个调用dubbo里面的一个方法时,程序一直调用,每次显示报红。
很难搞。
问题代码
| 1
2
3
4
5
6
7
 | 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 
[192.168.116.1:53684] (1/1) from the registry 47.98.231.26:2181
 on the consumer 192.168.116.1 using the dubbo version 2.6.0. Last error is:
 Invoke remote method timeout. method: getAllSku,
 provider: dubbo://192.168.116.1:53684/com.atguigu.gmall.service
 | 
 
这么烦,已经搞崩心态了
扔百度翻译去。
【bug,真TM智障】
靠,方法调用超时。

 
 
解决办法:
| 1
2
3
4
 | # 设置超时时间
spring.dubbo.consumer.timeout=600000
# 设置是否检查服务存在
spring.dubbo.consumer.check=false
 | 
 
可以了,终于找出bug了。真是不容易
 
