How do I override a Spring bean definition yet still reference the overridden bean?

后端 未结 5 770
忘了有多久
忘了有多久 2020-12-29 13:03

I\'m attempting to implement a delegate Service provider by overriding the bean definition for the original service with my delegate Service. However, as the name would imp

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 13:35

    Use the "parent" attribute of the "ref" element with a parent container.
    You can find a detailed example in Spring documentation: http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-ref-element

提交回复
热议问题