Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
4a1924ed
Commit
4a1924ed
authored
Apr 13, 2021
by
dreis2211
Committed by
Andy Wilkinson
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Spring Data Elasticsearch deprecations
See gh-26078
parent
6f2b4aa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
City.java
...work/boot/autoconfigure/data/elasticsearch/city/City.java
+4
-2
Customer.java
.../src/main/java/smoketest/data/elasticsearch/Customer.java
+4
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/city/City.java
View file @
4a1924ed
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -20,8 +20,10 @@ import java.io.Serializable;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.elasticsearch.annotations.Document
;
import
org.springframework.data.elasticsearch.annotations.Setting
;
@Document
(
indexName
=
"city"
,
shards
=
1
,
replicas
=
0
,
refreshInterval
=
"-1"
)
@Document
(
indexName
=
"city"
)
@Setting
(
shards
=
1
,
replicas
=
0
,
refreshInterval
=
"-1"
)
public
class
City
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-elasticsearch/src/main/java/smoketest/data/elasticsearch/Customer.java
View file @
4a1924ed
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -18,8 +18,10 @@ package smoketest.data.elasticsearch;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.elasticsearch.annotations.Document
;
import
org.springframework.data.elasticsearch.annotations.Setting
;
@Document
(
indexName
=
"customer"
,
shards
=
1
,
replicas
=
0
,
refreshInterval
=
"-1"
)
@Document
(
indexName
=
"customer"
)
@Setting
(
shards
=
1
,
replicas
=
0
,
refreshInterval
=
"-1"
)
public
class
Customer
{
@Id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment