Registering basic_module successfully in the NACOS service registry, and also added @ LoadBalanced load balancing annotation in RestTemplateConfiguration, but still unable to parse basic_module, I use
restTemplate.getForObject("http://basic_module/user/getusername",String.class);
The request result resttemplate was resolved to basic_module:80
,Ultimately, it leads to basic_module:nodename nor servname provided, or not known
。
Why is it that even if I add a load balancer and register successfully in the service registry, I cannot recognize basic_module