g*****g 发帖数: 34805 | 1 如果有一个值事先不知道,需要运行时用户给或者从数据库load,
怎么wire这个Bean? | N***m 发帖数: 4460 | 2 setter method 写成
public void setA(int a){
this.a = readUserInput();
}
I have no spring to test, so I don't know
if the above works or not. Just my guess:)
btw,it seems spring has been there for long time,
but I just learned it very recently. So will it still
be popular for some time, say 5 years?
【在 g*****g 的大作中提到】 : 如果有一个值事先不知道,需要运行时用户给或者从数据库load, : 怎么wire这个Bean?
|
|