Check out example codes for "spring yml property boolean". It will help you in understanding the concepts better.

Code Example 1

@Value("#{new Boolean('${item.priceFactor}')}")
private Boolean itemFactorBoolean;

@Value("#{new Integer('${item.priceFactor}')}")
private Integer itemFactorInteger;

Learn ReactJs, React Native from akashmittal.com