How to set dynamically a bean reference in Spring?

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



  

        
6条回答
  •  忘掉有多难
    2020-12-09 20:15

    Spring provides a mechanism called property placeholders. This way you can set certain properties in a database/properties file and spring will fill them in on startup.

    The class to use for this is located here.

提交回复
热议问题