mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use a List rather than an array for consistency
Closes gh-11029
This commit is contained in:
parent
e34c2b0c01
commit
5728d9614e
@ -266,9 +266,9 @@ public class RedisProperties {
|
||||
private String master;
|
||||
|
||||
/**
|
||||
* Nodes as host:port pairs.
|
||||
* Comma-separated list of "host:port" pairs.
|
||||
*/
|
||||
private String[] nodes;
|
||||
private List<String> nodes;
|
||||
|
||||
public String getMaster() {
|
||||
return this.master;
|
||||
@ -278,11 +278,11 @@ public class RedisProperties {
|
||||
this.master = master;
|
||||
}
|
||||
|
||||
public String[] getNodes() {
|
||||
public List<String> getNodes() {
|
||||
return this.nodes;
|
||||
}
|
||||
|
||||
public void setNodes(String[] nodes) {
|
||||
public void setNodes(List<String> nodes) {
|
||||
this.nodes = nodes;
|
||||
}
|
||||
|
||||
|
@ -869,7 +869,7 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.redis.password= # Login password of the redis server.
|
||||
spring.redis.port=6379 # Redis server port.
|
||||
spring.redis.sentinel.master= # Name of Redis server.
|
||||
spring.redis.sentinel.nodes= # Comma-separated list of host:port pairs.
|
||||
spring.redis.sentinel.nodes= # Comma-separated list of "host:port" pairs.
|
||||
spring.redis.ssl=false # Enable SSL support.
|
||||
spring.redis.timeout=0 # Connection timeout in milliseconds.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user