https://blog.csdn.net/Linyizu...
when a springCloud client cannot register a service with eureka, many solutions add the following
to the service pom<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
what is the reason?