Having spring bean properties refreshed automatically from properties file

前端 未结 5 1339
礼貌的吻别
礼貌的吻别 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:18

    One way to do this is to embed a groovy console in your application. Here's some instructions. They were very simple to do, btw - took me very little time even though I'm not that familiar with groovy.

    Once you do that you can simply go into the console and change values inside the live application on the fly.

提交回复
热议问题