Spring Cloud遇到的坑——服務狀態為DOWN


  今天啟動上次寫好的微服務時出現了這樣的情況:

    

  於是一臉懵逼...

  

  忽然打開DOWN狀態微服務的pom文件,看到如下情況:

  <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-eureka</artifactId>
        </dependency>

        <!-- 監控和管理生產環境的依賴 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        
        <!-- 添加feign依賴 -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-feign</artifactId>
        </dependency>
        <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-solr</artifactId> </dependency>
    </dependencies>

  紅色標記出來的是什么鬼???我沒有加過啊,於是果斷刪除,重新發布微服務:

  

  問題貌似是解決了,但是當我重新再啟微服務的時候,又出現了down的狀態,好心累,好一陣壞一陣的,這是什么鬼。。。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM