File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed
main/java/example/springdata/redis/cluster
test/java/example/springdata/redis/cluster Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 18
18
<groupId >org.springframework.boot</groupId >
19
19
<artifactId >spring-boot-starter-redis</artifactId >
20
20
</dependency >
21
+
21
22
<dependency >
22
23
<groupId >${project.groupId} </groupId >
23
24
<artifactId >spring-data-redis-example-utils</artifactId >
24
25
<version >${project.version} </version >
25
26
<scope >test</scope >
26
27
</dependency >
27
28
28
- <!-- remove this one when DATAREDIS-315 has been merged -->
29
29
<dependency >
30
- <groupId >org.springframework.data </groupId >
31
- <artifactId >spring-data-redis </artifactId >
32
- <version >1.7.0.DATAREDIS-315-SNAPSHOT</ version >
30
+ <groupId >org.springframework.boot </groupId >
31
+ <artifactId >spring-boot-configuration-processor </artifactId >
32
+ <optional >true</ optional >
33
33
</dependency >
34
+
34
35
</dependencies >
35
36
36
37
</project >
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2015 the original author or authors.
2
+ * Copyright 2015-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2015 the original author or authors.
2
+ * Copyright 2015-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
* Type safe representation of {@code spring.redis.cluster.*} properties in {@literal application.properties}.
25
25
*
26
26
* @author Christoph Strobl
27
+ * @author Oliver Gierke
27
28
*/
28
29
@ Component
29
30
@ ConfigurationProperties (prefix = "spring.redis.cluster" )
30
31
public class ClusterConfigurationProperties {
31
32
32
- List <String > nodes ;
33
+ private List <String > nodes ;
33
34
34
35
/**
35
36
* Get initial collection of known cluster nodes in format {@code host:port}.
@@ -43,5 +44,4 @@ public List<String> getNodes() {
43
44
public void setNodes (List <String > nodes ) {
44
45
this .nodes = nodes ;
45
46
}
46
-
47
47
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2015 the original author or authors.
2
+ * Copyright 2015-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
19
19
import static org .hamcrest .core .IsCollectionContaining .*;
20
20
import static org .junit .Assert .*;
21
21
22
+ import example .springdata .redis .test .util .RequiresRedisServer ;
23
+
22
24
import java .util .Arrays ;
23
25
24
26
import org .junit .Before ;
34
36
import org .springframework .data .redis .core .RedisTemplate ;
35
37
import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
36
38
37
- import example .springdata .redis .test .util .RequiresRedisServer ;
38
-
39
39
/**
40
40
* {@link BasicUsageTests} shows general usage of {@link RedisTemplate} and {@link RedisOperations} in a clustered
41
41
* environment.
You can’t perform that action at this time.
0 commit comments