【spring cloud】Failed to bind properties under 'eureka.client.service-url' to**** 的解决办法
错误信息描述如下:Description: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 fr...
·
错误信息描述如下:
Description:
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>]
Action:
Update your application's configuration
看到日志信息Failed to bind properties under ‘eureka.client.service-url’ to java.util.Map<java.lang.String, java.lang.String> 说明我们的eureka的url设置的有问题,可是我排查多遍,确实是对的啊,代码如下:
后来通过查阅资料发现 defaultZone前面要有空格,改成下面的样式,问题解决
更多推荐
已为社区贡献2条内容
所有评论(0)