|
|
1
21
对于Spring2.5及更高版本,如果对象在初始化时需要调用回调方法,则可以使用
例如:
这比
|
|
|
2
4
据我所知, the init-method is called after all dependencies are injected . 试一试:
这就产生了:
|
|
|
3
3
你需要实施
InitializingBean
接口并重写
|