Eureka client 启动 注册失败

Started ClientApplication in 3.537 seconds (JVM running for 4.742)
2018-07-18 22:53:35.426  INFO 8960 --- [      Thread-13] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@6cdba6dc: startup date [Wed Jul 18 22:53:33 GMT+08:00 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@3d51f06e
2018-07-18 22:53:35.426  INFO 8960 --- [      Thread-13] o.s.c.n.e.s.EurekaServiceRegistry        : Unregistering application client with eureka with status DOWN
2018-07-18 22:53:35.427  WARN 8960 --- [      Thread-13] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1531925615427, current=DOWN, previous=UP]
2018-07-18 22:53:35.428  INFO 8960 --- [      Thread-13] o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 0
2018-07-18 22:53:35.429  INFO 8960 --- [      Thread-13] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...
2018-07-18 22:53:35.445  INFO 8960 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT/XXXXXXX:client:8080 - registration status: 204
2018-07-18 22:53:35.446  INFO 8960 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT/XXXXXXX:client:8080: registering service...
2018-07-18 22:53:35.451  INFO 8960 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT/XXXXXXX:client:8080 - registration status: 204
2018-07-18 22:53:35.452  INFO 8960 --- [      Thread-13] com.netflix.discovery.DiscoveryClient    : Unregistering ...
2018-07-18 22:53:35.461  INFO 8960 --- [      Thread-13] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_CLIENT/XXXXXXX:client:8080 - deregister  status: 200
2018-07-18 22:53:35.472  INFO 8960 --- [      Thread-13] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient
2018-07-18 22:53:35.472  INFO 8960 --- [      Thread-13] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2018-07-18 22:53:35.473  INFO 8960 --- [      Thread-13] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

parent版本:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.3.RELEASE</version>
    <relativePath/> 
</parent>
eureka版本:
<spring-cloud.version>Finchley.RELEASE</spring-cloud.version>

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

解决方法:

在pom.xml中添加依赖

<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、付费专栏及课程。

余额充值