嗨我想从属性文件autowire boolean值已经引用以下链接与地图url Spring属性(property-placeholder)自动装配
但我想自动连接一个布尔属性,也提到了问题Spring Autowire原始布尔 Spring Autowire原始布尔值, 但那是bean值,在我的情况下我想使用点分隔的属性值做同样的事情.
${does.it.allow}
//它失败,并给出字符串不能转换为boolean
#{does.it.allow}
//这给用名称来定义无豆/属性确实,但我有正确的属性文件,它证明了容器能够加载它,因为第一个错误.