【发布时间】:2015-10-08 07:17:03
【问题描述】:
我正在尝试创建以下 spring 配置
<beans profile="profile1">
<jms:outbound-channel-adapter id="sampleId"/>
</beans>
<beans profile="profile2">
<jms:outbound-channel-adapter id="sampleId"/>
</beans>
(jms:outbound-channel-adapter 是 spring 集成的命名空间)
当创建这样的上下文时,我得到重复的 bean id 异常...
知道为什么吗?
编辑..(活动配置文件设置为配置文件1)
【问题讨论】:
-
你能发布异常堆栈跟踪吗?