Skip to content

Commit 74a5d13

Browse files
committed
Polish HTTP Service client auto-configuration
1 parent 009bd44 commit 74a5d13

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

module/spring-boot-restclient/src/main/java/org/springframework/boot/restclient/autoconfigure/service/HttpServiceClientAutoConfiguration.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@
3232
import org.springframework.context.annotation.Conditional;
3333
import org.springframework.web.client.ApiVersionFormatter;
3434
import org.springframework.web.client.ApiVersionInserter;
35+
import org.springframework.web.client.RestClient;
3536
import org.springframework.web.client.support.RestClientAdapter;
3637
import org.springframework.web.service.registry.HttpServiceProxyRegistry;
37-
import org.springframework.web.service.registry.ImportHttpServices;
3838

3939
/**
40-
* AutoConfiguration for Spring HTTP Service clients.
41-
* <p>
42-
* This will result in the creation of blocking HTTP Service client beans defined by
43-
* {@link ImportHttpServices @ImportHttpServices} annotations.
40+
* AutoConfiguration for Spring HTTP Service clients backed by {@link RestClient}.
4441
*
4542
* @author Olga Maciaszek-Sharma
4643
* @author Rossen Stoyanchev
@@ -57,9 +54,6 @@ public final class HttpServiceClientAutoConfiguration implements BeanClassLoader
5754
@SuppressWarnings("NullAway.Init")
5855
private ClassLoader beanClassLoader;
5956

60-
HttpServiceClientAutoConfiguration() {
61-
}
62-
6357
@Override
6458
public void setBeanClassLoader(ClassLoader classLoader) {
6559
this.beanClassLoader = classLoader;

module/spring-boot-webclient/src/main/java/org/springframework/boot/webclient/autoconfigure/service/ReactiveHttpServiceClientAutoConfiguration.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@
3131
import org.springframework.context.annotation.Bean;
3232
import org.springframework.web.client.ApiVersionFormatter;
3333
import org.springframework.web.client.ApiVersionInserter;
34+
import org.springframework.web.reactive.function.client.WebClient;
3435
import org.springframework.web.reactive.function.client.support.WebClientAdapter;
3536
import org.springframework.web.service.registry.HttpServiceProxyRegistry;
36-
import org.springframework.web.service.registry.ImportHttpServices;
3737

3838
/**
39-
* AutoConfiguration for Spring reactive HTTP Service Clients.
40-
* <p>
41-
* This will result in the creation of reactive HTTP Service client beans defined by
42-
* {@link ImportHttpServices @ImportHttpServices} annotations.
39+
* AutoConfiguration for Spring reactive HTTP Service Clients backed by {@link WebClient}.
4340
*
4441
* @author Olga Maciaszek-Sharma
4542
* @author Rossen Stoyanchev
@@ -55,9 +52,6 @@ public final class ReactiveHttpServiceClientAutoConfiguration implements BeanCla
5552
@SuppressWarnings("NullAway.Init")
5653
private ClassLoader beanClassLoader;
5754

58-
ReactiveHttpServiceClientAutoConfiguration() {
59-
}
60-
6155
@Override
6256
public void setBeanClassLoader(ClassLoader classLoader) {
6357
this.beanClassLoader = classLoader;

0 commit comments

Comments
 (0)