Override spring bean without an alias that is also the parent

前端 未结 1 364
予麋鹿
予麋鹿 2021-01-25 01:51

I have a bean in module1-spring.xml-




    

        
相关标签:
1条回答
  • 2021-01-25 02:20

    Copying the service bean in module2 and injecting child fixed the issue.
    module2-spring.xml-

    <bean id="service" class="com.Service">
        <property name="parent" ref="child"/>
    </bean>
    
    0 讨论(0)
提交回复
热议问题