@Retention(value=RUNTIME) @Target(value=TYPE) public @interface UseConsulDns
Named annotation as follows
@Named("service-a")
then service B will be able to reference it using name service-a.service.consul Copyright © 2019. All rights reserved.