问题 解决的办法 在注册服务的项目配置中加入: eureka: instance: hostname: ${spring.cloud.client.ipAddress} # springcloud2.x的话 eureka: instance: hostname: ${spring.cloud.client.ip-address}