Skip to content

Commit 4c2a7db

Browse files
committed
Upgrade to Spring Data 2021.0.0-M2
Closes gh-24931
1 parent 20b7016 commit 4c2a7db

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchDataConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,7 +17,6 @@
1717
package org.springframework.boot.autoconfigure.data.elasticsearch;
1818

1919
import org.elasticsearch.action.support.IndicesOptions;
20-
import org.elasticsearch.action.support.WriteRequest;
2120
import org.elasticsearch.client.RestHighLevelClient;
2221

2322
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
@@ -30,6 +29,7 @@
3029
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
3130
import org.springframework.data.elasticsearch.core.ReactiveElasticsearchOperations;
3231
import org.springframework.data.elasticsearch.core.ReactiveElasticsearchTemplate;
32+
import org.springframework.data.elasticsearch.core.RefreshPolicy;
3333
import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter;
3434
import org.springframework.data.elasticsearch.core.convert.MappingElasticsearchConverter;
3535
import org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext;
@@ -87,7 +87,7 @@ ReactiveElasticsearchTemplate reactiveElasticsearchTemplate(ReactiveElasticsearc
8787
ElasticsearchConverter converter) {
8888
ReactiveElasticsearchTemplate template = new ReactiveElasticsearchTemplate(client, converter);
8989
template.setIndicesOptions(IndicesOptions.strictExpandOpenAndForbidClosed());
90-
template.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);
90+
template.setRefreshPolicy(RefreshPolicy.IMMEDIATE);
9191
return template;
9292
}
9393

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,12 +43,6 @@ class SpringBootRepositoryRestConfigurer implements RepositoryRestConfigurer {
4343
@Autowired
4444
private RepositoryRestProperties properties;
4545

46-
@Override
47-
@SuppressWarnings("deprecation")
48-
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
49-
configureRepositoryRestConfiguration(config, null);
50-
}
51-
5246
@Override
5347
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config, CorsRegistry cors) {
5448
this.properties.applyTo(config);

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ bom {
15521552
]
15531553
}
15541554
}
1555-
library("Spring Data Bom", "2020.0.2") {
1555+
library("Spring Data Bom", "2021.0.0-M2") {
15561556
group("org.springframework.data") {
15571557
imports = [
15581558
"spring-data-bom"

0 commit comments

Comments
 (0)