spring boot - springcloud eureka register center - how to use service-id instead of ip? -
now have 2 peers, 1 ip 192.168.1.2, ip 192.168.1.3, , it referenced each other.
i have set prefer-ip-address true, in case should put real ip address in application file when in production environment.
it's not convenient configure ip addresses in application file.
the issue dont want use ip address , hostname, there way use service-id or name register each other ?
thanks.
Comments
Post a Comment