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;

 

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