We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac487b7 + 4a773bd commit d92cc04Copy full SHA for d92cc04
spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientFactoryBean.java
@@ -483,6 +483,9 @@ <T> T getTarget() {
483
if (StringUtils.hasText(url) && !url.startsWith("http://") && !url.startsWith("https://")) {
484
url = "http://" + url;
485
}
486
+ // NOTE: The Client bean should ideally be configured as a singleton.
487
+ // Repeated resolution of Client instances may lead to resource exhaustion
488
+ // (e.g., connection pools, threads) if not properly managed.
489
Client client = getOptional(feignClientFactory, Client.class);
490
if (client != null) {
491
if (client instanceof FeignBlockingLoadBalancerClient) {
0 commit comments