Failed to bind properties under 'eureka.client.service-url' to java utilMapjava.angString java
客户端(生产者)一开始yml的配置为`eureka:instance:hostname: localhostclient:serviceUrl:defaultZone: http://localhost:8081/eureka/server:port: 8082spring:application:name: client-...
·
客户端(生产者)一开始yml的配置为`
eureka:
instance:
hostname: localhost
client:
serviceUrl:
defaultZone: http://localhost:8081/eureka/
server:
port: 8082
spring:
application:
name: client-hi
各种查看也没问题啊,冒号后空格也加了,配置也没问题,但一运行就包如题错误;
原来,要把defaultZone前加空格,与serviceUrl区分开。就解决了!
更多推荐
已为社区贡献1条内容
所有评论(0)