Springcloud cannot pass serverid/ using resttemplate. Visit

        TbUser user = restTemplate.getForObject("http://moviemodel/user/{id}",TbUser.class,id);
        TbUser user = restTemplate.getForObject("http://localhost:8010/user/{id}",TbUser.class,id);

the first of these two methods is not good so that the second service can be successfully registered on eureka. Through http://localhost:port/routes, you can also see the service / moviemodel/**" moviemodel ", but it is not good to ask for help

.
Mar.21,2021

hosts?

Menu