Can I replace a Spring bean definition at runtime?

后端 未结 11 1353
萌比男神i
萌比男神i 2020-11-30 17:44

Consider the following scenario. I have a Spring application context with a bean whose properties should be configurable, think DataSource or MailSender

11条回答
  •  遥遥无期
    2020-11-30 18:16

    You may want to have a look at the Spring Inspector a plug-gable component that provides programmatic access to any Spring based application at run-time. You can use Javascript to change configurations or manage the application behaviour at run-time.

提交回复
热议问题