📜  spring yml property boolean - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:37.698000             🧑  作者: Mango

代码示例1
@Value("#{new Boolean('${item.priceFactor}')}")
private Boolean itemFactorBoolean;

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