I don’t want to set the url once on each class. Is there any way to configure the global url? I didn’t use the configuration center
Comment From: OlgaMaciaszek
The url has to be set via annotation attribute, however, you can use placeholders, like so:
@FeignClient(name = "${feign.name}", url = "${feign.url}")
public interface StoreClient {
//..
}
and then set feign.url in properties. See related documentation.