Injecting Values
@Value("${properties.valueName}")Types
public class ExampleService implements Service {
@Value("${properties.valueName}")
private Integer value;
}public class ExampleService implements Service {
@Value("#{@valuesCollection}")
private Iterable<Integer> values;
}Last updated