N*m
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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 如果有一个值事先不知道,需要运行时用户给或者从数据库load,
: 怎么wire这个Bean?
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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 如果有一个值事先不知道,需要运行时用户给或者从数据库load,
: 怎么wire这个Bean?
相关阅读
问Zhaoce个问题请问:关于做大数据处理和mongoDB的工作,前景如何求OpenShift上Spring-quickstart的mysql配置方法Random split of a file请问Java阵营最新潮的web development stack是什么?啥是coding高手有人用过 ObjectDB in Maven 没有?哪位大虾总结一下Java学习的路径步骤和所需的时间二爷推荐几个脚本语言吧Java play现在到底工作有多少需要Java的多线程呢?Java程序如何优雅退出?求教:Facade Pattern vs Static Variable感觉Nathan的paper的思想来源就是第一次摸java的新手问JSTL problem这种Unit test也有必要吗??一个简单的Java问题问一个spring dynamic module/OSGi的问题ThreadLocal 的一个 use case