Intentionally setting a Spring bean to null

后端 未结 7 1936
孤独总比滥情好
孤独总比滥情好 2020-12-05 06:32

I\'m using Spring to inject JMS connection factory into my Java application. Since this factory is only required within the production environment, not while I\'m developing

7条回答
  •  遥遥无期
    2020-12-05 07:26

    Can you make use of the special bean element ? e.g.

    
    
    
    

    from the doc, section 3.3.2.5

提交回复
热议问题