由于在创建项目时未选择依赖,启动时控制台报 Unregistering application XXX-CLIENT with eureka with status DOWN,Completed shut down of DiscoveryClient 错误,需要在对应项目的pom.xml文件中加入依赖即可解决。如下所示:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
备注:博主微信公众号,不定期更新文章,欢迎扫码关注。