Eureka cannot be started

SpringBoot is 2.0.1.RELEASE SpringCloud is Finchley.RC1

Eureka Discovery and Eureka Server are introduced into the client and server respectively

my server application.yml is configured as follows

eureka:
     client:
          service-url:
                defaultZone:  http://localhost:8761/eureka/
          register-with-eureka: false
     instance:
          preferIpAddress: true
          hostname: localhost
     server:
       enable-self-preservation: false
spring:
     application:
          name: server
server:
     port: 8761

my client application.yml configuration is as follows

eureka:
     client:
          service-url:
                defaultZone:  http://localhost:8761/eureka/
spring:
     application:
          name: client

but the startup client cannot start and ends as soon as it starts. The following is the client startup information, does not report an error, and cannot find the reason

clipboard.png

Mar.10,2021

introduce web module

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

automatically ends because there is no bean, but it is successful. You can join spring-boot-starter-web, but why the calculator name is not clear

Menu