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的状态,好心累,好一阵坏一阵的,这是什么鬼。。。

原文地址:https://www.cnblogs.com/studyDetail/p/7086631.html