Skip to content

Make HttpServiceClientAutoConfiguration conditional on HttpClientSettingsProperties#12

Open
OlgaMaciaszek wants to merge 1 commit into
philwebb:interface-client-6from
OlgaMaciaszek:interface-client-6-conditional-on-http-client-settings-properties
Open

Make HttpServiceClientAutoConfiguration conditional on HttpClientSettingsProperties#12
OlgaMaciaszek wants to merge 1 commit into
philwebb:interface-client-6from
OlgaMaciaszek:interface-client-6-conditional-on-http-client-settings-properties

Conversation

@OlgaMaciaszek

Copy link
Copy Markdown

Avoid failing on:

Parameter 1 of method restClientPropertiesHttpServiceGroupConfigurer in org.springframework.boot.autoconfigure.http.client.service.HttpServiceClientAutoConfiguration required a bean of type 'org.springframework.boot.autoconfigure.http.client.HttpClientSettingsProperties' that could not be found.

when only spring-boot-sarter-wbflux on the classpath.

Caused by https://github.com/spring-projects/spring-boot/blob/711c53d16c802025343285b90c3dd1f8c60ed1a6/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/http/client/HttpClientAutoConfiguration.java#L47.

Alternative solution: make HttpServiceClientAutoConfiguration @Conditional(NotReactiveWebApplicationCondition.class)

…ingsProperties bean.

Signed-off-by: Olga Maciaszek-Sharma <[email protected]>
@philwebb

Copy link
Copy Markdown
Owner

Fixed in spring-projects/spring-boot 4.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants