How to configure a Spring beans with properties that are stored in a database table

前端 未结 3 939
别那么骄傲
别那么骄傲 2020-12-13 04:49

In my project we\'d like to externalize the properties of our Spring managed beans, that is very easy to do with standard Java .properties files, however we want to be able

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 05:19

    In addition to Sean's suggestion, you can extend PropertyPlaceholderConfigurer. Look at the two current implementations - PreferencesX and ServletContextX, and roll out your own, jdbc-based.

提交回复
热议问题