客户端(生产者)一开始yml的配置为`
eureka:
instance:
hostname: localhost
client:
serviceUrl:
defaultZone: http://localhost:8081/eureka/
server:
port: 8082
spring:
application:
name: client-hi
各种查看也没问题啊,冒号后空格也加了,配置也没问题,但一运行就包如题错误;
原来,要把defaultZone前加空格,与serviceUrl区分开。就解决了!