Apply dynamic properties to a bean at runtime

后端 未结 3 1947
无人共我
无人共我 2020-12-21 00:34

Assume I have a bean DialogBox, with properties for height and width:

public class DialogBox {
 int x;
 int y;
 ...
}

In my applicationCont

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-21 01:24

    If I understood the question, you can use a FactoryBean to customize bean creation logic in Spring.

提交回复
热议问题