springcloud nacos 根据服务名获取服务的ip端口
@Autowired
private NacosServiceManager nacosServiceManager;
@Autowired
private NacosDiscoveryProperties nacosDiscoveryProperties;
public String getGatewayAddress() {
String res = null;
try {
NamingService nami..
原创
2022-01-01 20:06:14 ·
3623 阅读 ·
0 评论