配置文件:Application.yml文件出现如下情况:

是因为 pom.xml 文件少了 eureka-client的依赖:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
最后
以上就是酷酷溪流最近收集整理的关于搭建 Spring Cloud 项目 配置文件出现 defaultZone 无法解析时,是因为的全部内容,更多相关搭建内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复