Eureka 出现 Batch update failure with HTTP status code 401

添加

eureka:
  client:
    register-with-eureka: false # 是否将自己注册到Eureka Server,默认为true。
    fetch-registry: false
    service-url:
      defaultZone: http://${REGISTRY_SERVER_USERNAME}:${REGISTRY_SERVER_PASSWORD}@registry:8761/eureka/
  instance:
    prefer-ip-address: true # 以IP地址注册到服务中心,相互注册使用IP地址

添加 http://admin:admin@registry:8761/eureka/

猜你喜欢

转载自blog.csdn.net/weixin_43577800/article/details/86030197