0
点赞
收藏
分享

微信扫一扫

【已解决】Failed to bind properties under ‘eureka.client.service-url‘ to java.util.Map<java.lang.String,

捡历史的小木板 2022-01-12 阅读 126

一、问题

Failed to bind properties under 'eureka.client.service-url' to java.util.Map<java.lang.String, java.lang.String>:
    Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, java.lang.String>]

二、解决办法

  1. 没有添加defaultZone属性
    eg:
eureka:
 client:
   service-url:
     defaultZone: http://localhost:7001/eureka/
  1. defaultZoneservice-url:没有缩进。把defaultZone前加空格,与serviceUrl区分开。就解决了!
举报

相关推荐

cannot be cast to java.util.Map 报错

java.lang.String类

0 条评论