2020-03-18 10:29:08.875  INFO 13032 --- [           main] com.netflix.discovery.DiscoveryClient    : Starting heartbeat executor: renew interval is: 30

2020-03-18 10:29:08.878  INFO 13032 --- [           main] c.n.discovery.InstanceInfoReplicator     : InstanceInfoReplicator onDemand update allowed rate per min is 4

2020-03-18 10:29:08.883  INFO 13032 --- [           main] com.netflix.discovery.DiscoveryClient    : Discovery Client initialized at timestamp 1584498548881 with initial instances count: 0

2020-03-18 10:29:08.884  INFO 13032 --- [           main] o.s.c.n.e.s.EurekaServiceRegistry        : Registering application EUREKA-CONSUMER with eureka with status UP

2020-03-18 10:29:08.885  INFO 13032 --- [           main] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1584498548885, current=UP, previous=STARTING]

2020-03-18 10:29:08.886  INFO 13032 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_EUREKA-CONSUMER/192.168.1.100:eureka-consumer:8602:0.0.1-SNAPSHOT: registering service...

2020-03-18 10:29:08.898  INFO 13032 --- [           main] c.k.SpringBootEurekaClientApplication    : Started SpringBootEurekaClientApplication in 5.961 seconds (JVM running for 6.551)

2020-03-18 10:29:08.906  INFO 13032 --- [extShutdownHook] o.s.c.n.e.s.EurekaServiceRegistry        : Unregistering application EUREKA-CONSUMER with eureka with status DOWN

2020-03-18 10:29:08.906  WARN 13032 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient    : Saw local status change event StatusChangeEvent [timestamp=1584498548906, current=DOWN, previous=UP]

2020-03-18 10:29:08.916  INFO 13032 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...

2020-03-18 10:29:09.023  INFO 13032 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_EUREKA-CONSUMER/192.168.1.100:eureka-consumer:8602:0.0.1-SNAPSHOT - registration status: 204

2020-03-18 10:29:09.023  INFO 13032 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_EUREKA-CONSUMER/192.168.1.100:eureka-consumer:8602:0.0.1-SNAPSHOT: registering service...

2020-03-18 10:29:09.029  INFO 13032 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_EUREKA-CONSUMER/192.168.1.100:eureka-consumer:8602:0.0.1-SNAPSHOT - registration status: 204

2020-03-18 10:29:09.033  INFO 13032 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient    : Unregistering ...

2020-03-18 10:29:09.043  INFO 13032 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_EUREKA-CONSUMER/192.168.1.100:eureka-consumer:8602:0.0.1-SNAPSHOT - deregister  status: 200

2020-03-18 10:29:09.061  INFO 13032 --- [extShutdownHook] com.netflix.discovery.DiscoveryClient    : Completed shut down of DiscoveryClient


需要引入


  1. <dependency>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-starter-web</artifactId>
  4. </dependency>