Spring Cloud Consul 註冊服務failing,但是可以訪問

今天入門consul,嘗試註冊一個服務提供者,卻發現

但是能正常訪問,通過查詢,知道這只是check failing,原因是缺少依賴

<!--consul中健康檢查需要用到actuator,不添加會check failing -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

 

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