The current implementation is :-

```
public static final List<Integer> validCodes = Collections.unmodifiableList(Arrays.asList(110, 210, 310,510,610));

```

However, I am not happy with this approach as this of hard coded. I want to make it configurable instead of hard-coded. I suppose reading this values from the yaml file would solve my problem.

But how do I define a list of Integer in the yaml file and real it using @value. I can find a lot of example about reading list of strings but not integers.