Commit 42422bef by Spencer Gibb

prepend http:// to feign url if not there

parent 8410b893
......@@ -135,6 +135,9 @@ class FeignClientFactoryBean implements FactoryBean<Object>, InitializingBean {
if (StringUtils.hasText(this.name)) {
return loadBalance(feign(), this.type, this.name);
}
if (StringUtils.hasText(this.url) && !this.url.startsWith("http")) {
this.url = "http://" + this.url;
}
return feign().target(this.type, this.url);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment