When using comma-separated lists like this:
myparam=100,101,102
you can use @Value to inject value.
and use then
myparam=100,101,102
you can use @Value to inject value.
@Value("#{'${myparam:}'.split(',')}")
private List<Integer> codes;
But in this case we get list with one null elelment.
For solving this problem you can add to context
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean"/>
and use then
@Value("${myparam:}")List<Integer> annulCodes;