Skip to content

Commit 3829323

Browse files
committed
JAVA-2291: Document system property syntax for array options in manual
1 parent 4485e5d commit 3829323

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

manual/core/configuration/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ great for temporary changes, for example in your development environment:
111111
java -Ddatastax-java-driver.advanced.heartbeat.interval="5 minutes" ...
112112
```
113113

114+
For array options, provide each element separately by appending an index to the path:
115+
116+
```
117+
-Ddatastax-java-driver.basic.contact-points.0="127.0.0.1:9042"
118+
-Ddatastax-java-driver.basic.contact-points.1="127.0.0.2:9042"
119+
```
120+
114121
We recommend reserving system properties for the early phases of the project; in production, having
115122
all the configuration in one place will make it easier to manage and review.
116123

0 commit comments

Comments
 (0)