一开始以为是缺少数据源,仔细查看后发现不是
application.yml配置文件中:eureka.client.service-url后缺少defaultZone或yml格式不正确也会引发此类错误
service-url后添加defaultZone