Upgrade to Spring Data 2021.1.0-M3

Closes gh-27932
pull/28064/head
Andy Wilkinson 3 years ago
parent 67f548e965
commit 30815cc0e0

@ -28,6 +28,7 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.client.ClientConfiguration;
import org.springframework.data.elasticsearch.client.reactive.ReactiveElasticsearchClient;
import org.springframework.data.elasticsearch.client.reactive.ReactiveRestClients;
import org.springframework.data.elasticsearch.client.reactive.ReactiveRestClients.WebClientConfigurationCallback;
import org.springframework.util.unit.DataSize;
import org.springframework.web.reactive.function.client.ExchangeStrategies;
import org.springframework.web.reactive.function.client.WebClient;
@ -63,11 +64,11 @@ public class ReactiveElasticsearchRestClientAutoConfiguration {
ClientConfiguration.TerminalClientConfigurationBuilder builder,
ReactiveElasticsearchRestClientProperties properties) {
map.from(properties.getMaxInMemorySize()).asInt(DataSize::toBytes).to((maxInMemorySize) -> {
builder.withWebClientConfigurer((webClient) -> {
builder.withClientConfigurer(WebClientConfigurationCallback.from((webClient) -> {
ExchangeStrategies exchangeStrategies = ExchangeStrategies.builder()
.codecs((configurer) -> configurer.defaultCodecs().maxInMemorySize(maxInMemorySize)).build();
return webClient.mutate().exchangeStrategies(exchangeStrategies).build();
});
}));
});
}

@ -1627,7 +1627,7 @@ bom {
]
}
}
library("Spring Data Bom", "2021.1.0-SNAPSHOT") {
library("Spring Data Bom", "2021.1.0-M3") {
group("org.springframework.data") {
imports = [
"spring-data-bom"

Loading…
Cancel
Save