How to express int array[6] in YAML
[1, 2, 3, 4, 5, 6]
or
- 1 - 2 - 3 - 4 - 5 - 6
You should simply use a list:
[1, 2, 3, 4, 5, 6]
It throws IllegalArgumentException in my spring application, when I use [1, 2, 3, 4, 5, 6] in application.yaml. However it works when i use 1,2,3,4,5,6
my annotation code is
@Value("${app.groupIds}")
private int[] groupIds;