***************************
APPLICATION FAILED TO START
***************************
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
eureka一共就俩注释一行代码报这个错就很迷,查了一下发现是yml配置存在错误:
他需要一个Map类型我们现在给他的是String类型,所以就报错了
解决办法:加上 defaultZone:
eureka:
client:
register-with-eureka: false
fetch-registry: false
service-url:
defaultZone: http://127.0.0.1/eureka/