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 的大作中提到】
: 如果有一个值事先不知道,需要运行时用户给或者从数据库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 的大作中提到】
: 如果有一个值事先不知道,需要运行时用户给或者从数据库load,
: 怎么wire这个Bean?
相关阅读
Servlet的IO吞吐瓶颈在哪里?为什么测下来只有3M bytes 左右?How can I use OpenLDAP in JBoss Servelt?As beginner,Which one I should choose?thanks everyone.Help!!! set LD_LIBRARY_PATH in Eclipse有没有谁能提供一下最新MyEclipse 4.0GA的破解呢?install eclipsejava 源代码搜索引擎 www.codase.comBSF development stopped?What's your habit to document this?SCEA急! 如何用eclipse编辑luceneJAVA 源代码搜索引擎大侠帮忙看看这个code为什么在jdk1。5下面不能运行问几个土问题求助谁有“Java an eventful approach"一书电子版Java程序员认证模拟题及详细分析(2)how to display an excel file in java?ft, BSF documentation?应用服务器的大家占有,使用率的