zoukankan      html  css  js  c++  java
  • 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的状态,好心累,好一阵坏一阵的,这是什么鬼。。。

  • 相关阅读:
    elasticsearch head插件安装
    ELK部署配置使用记录
    windows 安装mysql
    vs2017创建dotnetcore web项目,并部署到centos7上
    CentOS 7 安装jdk
    CentOS 7 配置网络
    Surging 记录
    记录一下地址
    net core 依懒注入 中间件
    Elasticsearch 配置文件
  • 原文地址:https://www.cnblogs.com/studyDetail/p/7086631.html
Copyright © 2011-2022 走看看