今天搭建eureka客户端服务运行时报错,如下图所示
经查阅是因为 下面这个依赖注释了,启用后,运行ok
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
这个AbstractDiscoveryClientOptionalArgs需要两个依赖spring-boot-starter-web,spring-cloud-starter-netflix-eureka-client