File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -684,20 +684,26 @@ With this option enabled only environment variables starting with
684
684
i.e. The environment variable ` CONFIG_FORCE_a_b__c___d ` set the
685
685
configuration key ` a.b-c_d `
686
686
687
- ### Set array values from env variables
687
+ ### Set array values outside configuration files
688
688
689
- Setting the value of array items from system properties requires
690
- specifing the index in the array for the value. So, while in HOCON
691
- you can set multiple values into an array or append to an array:
689
+ Setting the value of array items from java properties or environment
690
+ variables require specifying the index in the array for the value.
691
+ So, while in HOCON you can set multiple values into an array or
692
+ append to an array:
692
693
693
694
## HOCON
694
695
items = ["a", "b"]
695
696
items += "c"
696
697
697
- Using java arguments you specify the exact position:
698
+ Using java properties you specify the exact position:
698
699
699
700
-Ditems.0="a" -Ditems.1="b"
700
701
702
+ as well as with environment variables:
703
+
704
+ export CONFIG_FORCE_items_0=a
705
+ export CONFIG_FORCE_items_1=b
706
+
701
707
### Concatenation
702
708
703
709
Values _ on the same line_ are concatenated (for strings and
You can’t perform that action at this time.
0 commit comments