Spring's overriding bean

后端 未结 8 1465
忘了有多久
忘了有多久 2020-12-01 03:02

Can we have duplicate names for the same bean id that is mentioned in the XML? If not, then how do we override the bean in Spring?

8条回答
  •  -上瘾入骨i
    2020-12-01 03:21

    Whether can we declare the same bean id in other xml for other reference e.x.

    Servlet-Initialize.xml

    
      
      
    
    

    Other xml (Document.xml)

    
      
      
    
    

提交回复
热议问题