You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #36594 and #27360 but I'm not sure if a solution for those issues would also fix mine, so feel free to close this if you consider this to be a duplicate.
Issue: Configuration made through the spring.http.client properties is ignored if I use AutoConfiguredRestClientSsl. For example, configuration like
The reason for this is that AutoConfiguredRestClientSslreplaces the request factory and thus discards any configuration made via the spring.http.client properties:
instead, but this only works in this static scenario, if I needed some more sophisticated logic to determine the SSL bundle to use at runtime, this wouldn't work.
The text was updated successfully, but these errors were encountered:
This is similar to #36594 and #27360 but I'm not sure if a solution for those issues would also fix mine, so feel free to close this if you consider this to be a duplicate.
Issue: Configuration made through the
spring.http.client
properties is ignored if I useAutoConfiguredRestClientSsl
. For example, configuration likedoes not work if I also have this:
The reason for this is that
AutoConfiguredRestClientSsl
replaces the request factory and thus discards any configuration made via thespring.http.client
properties:spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/client/AutoConfiguredRestClientSsl.java
Lines 52 to 56 in 1832852
For this specific issue I can work around this by removing my
RestClientCustomizer
and useinstead, but this only works in this static scenario, if I needed some more sophisticated logic to determine the SSL bundle to use at runtime, this wouldn't work.
The text was updated successfully, but these errors were encountered: