Having spring bean properties refreshed automatically from properties file

前端 未结 5 1334
礼貌的吻别
礼貌的吻别 2020-12-30 15:45

I\'m using Spring 2.5.6. I have a bean whose properties are being assign from a property file via a PropertyPlaceholderConfigurer. I\'m wondering whether its possible to ha

5条回答
  •  鱼传尺愫
    2020-12-30 16:22

    You might try to use a custom scope for the bean that recreates beans on changes of the properties file. See my more extensive answer here.

提交回复
热议问题