springcloud客户端注册时 Saw local status change event StatusChangeEvent错误

在这里插入图片描述

启动报错信息

2020-06-12 11:48:54.815  WARN 7728 --- [      Thread-31] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1591933734815, current=DOWN, previous=UP]
2020-06-12 11:48:54.819  INFO 7728 --- [      Thread-31] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...
2020-06-12 11:48:54.831  INFO 7728 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_KOALA-AI-PLATFORM-APP/192.168.100.1:18087 - registration status: 204
2020-06-12 11:48:54.832  INFO 7728 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_KOALA-AI-PLATFORM-APP/192.168.100.1:18087: registering service...
2020-06-12 11:48:54.836  INFO 7728 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_KOALA-AI-PLATFORM-APP/192.168.100.1:18087 - registration status: 204
2020-06-12 11:48:54.837  INFO 7728 --- [      Thread-31] com.netflix.discovery.DiscoveryClient    : Unregistering ...
2020-06-12 11:48:54.843  INFO 7728 --- [      Thread-31] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_KOALA-AI-PLATFORM-APP/192.168.100.1:18087 - deregister  status: 200
2020-06-12 11:48:54.854  INFO 7728 --- [      Thread-31] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient

客户端注册不到eureka中去,找来找去发现是客户端pom文件中缺少spring-boot-starter-web,加上就行了

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值