How to set dynamically a bean reference in Spring?

后端 未结 6 983
抹茶落季
抹茶落季 2020-12-09 19:56
   
     



  

        
6条回答
  •  Happy的楠姐
    2020-12-09 20:11

    You can do it using PropertyPlaceholderConfigurer or using @Profile

    Also See

    • is-there-any-way-to-enable-or-disable-the-spring-bean-definition-in-applicationc
    • PropertyPlaceholderConfigurer example

提交回复
热议问题