java.lang.IllegalStateException: Failed to check the status of the service 的解决办法

参考资料

  java.lang.IllegalStateException: Failed to check the status of the service 的解决办法_Hello_World_QWP的博客-CSDN博客

环境条件

  spring cloud,注册中心用的是zookeeper;

报错原因

    @Reference
    private XXXService xxxService;

解决方法

    @Reference(check = false, retries = 0)
    private XXXService xxxService;

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章