Error log:
Shutting down DiscoveryClient ...
Solution: Add web-dependent (in the present project run mvn spring-boot:. Run can directly enable a nested web application in tomcat)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>