使用Property占位符表示Bean ID

Bra*_*lor 5 spring spring-integration spring-3

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

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

<context:property-placeholder/>

<int:channel id="${channel.name}"/>
Run Code Online (Sandbox Code Playgroud)

Bij*_*men 2

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