码迷,mamicode.com
首页 > 编程语言 > 详细

Spring Cloud遇到的坑——服务状态为DOWN

时间:2017-06-27 20:03:04      阅读:2328      评论:0      收藏:0      [点我收藏+]

标签:div   end   ima   红色   标记   mil   服务   data   pom   

  今天启动上次写好的微服务时出现了这样的情况:

    技术分享

  于是一脸懵逼...

  

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

Spring Cloud遇到的坑——服务状态为DOWN

标签:div   end   ima   红色   标记   mil   服务   data   pom   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!