对 Bean ID 使用属性占位符



在Spring 3.1中,是否可以使用属性占位符来解析bean的'id'属性?

例如,我想在我的上下文中执行以下操作.xml文件:

<context:property-placeholder/>
<int:channel id="${channel.name}"/>

不,不是 id 和 name 属性 - 这是基于我所看到的 PropertySourcesPlaceholderConfigurer 如何解析占位符。

最新更新