spring - constructor injection and overriding parent definition of nested bean

后端 未结 4 2123
执念已碎
执念已碎 2021-02-06 03:53

I\'ve read the Spring 3 reference on inheriting bean definitions, but I\'m confused about what is possible and not possible.

For example, a bean that takes a collaborato

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 04:08

    Have you thought of using a factory instead?

    You can config beans to have a factory and you could encode the varying parameters in the factory creation...

提交回复
热议问题