demo: feign eager load support schema

pull/1651/head
shedfreewu 2 months ago
parent 59743faaf9
commit 7ca487d7f4

@ -68,7 +68,7 @@ public class FeignEagerLoadSmartLifecycle implements SmartLifecycle {
}
String serviceName = URI.create(url).getHost();
LOG.info("[{}] eager-load start", serviceName);
LOG.info("[{}] eager-load start, feign name: {}", serviceName, hardCodedTarget.name());
if (polarisDiscoveryClient != null) {
polarisDiscoveryClient.getInstances(serviceName);
}

@ -23,7 +23,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "${provider.name:provider-demo}")
@FeignClient(name = "${provider.name:http://provider-demo}")
public interface ProviderDemoService {
@RequestMapping(value = "/echo/{str}", method = RequestMethod.GET)
String echo(@PathVariable("str") String str);

Loading…
Cancel
Save