异常处理:Failed to bind properties under ‘eureka.client.service-url‘ to java.util.Map

tech2026-09-25  3

运行项目时报Update your application’s configuration

一开始以为是缺少数据源,仔细查看后发现不是

原因:

application.yml配置文件中:eureka.client.service-url后缺少defaultZone或yml格式不正确也会引发此类错误

解决:

service-url后添加defaultZone

最新回复(0)