Spring
文章平均质量分 69
iteye_10390
这个作者很懒,什么都没留下…
展开
-
Spring bean's life
1. Spring instantiates the bean.2. Spring injects values and bean references into the bean's properties.3. If the bean implements BeanNameAware, Spring passes the bean's ID to the setBeanName() meth...原创 2013-01-21 11:18:51 · 106 阅读 · 0 评论 -
Spring - Initializing and destroying beans
1. 使用init-method和destroy-method属性: <bean id="kenny" class="com.springinaction.springidol.Instrumentalist"init-method="tuneInstrument"destroy-method="cleanInstrument"> <property name="原创 2013-01-21 11:55:47 · 87 阅读 · 0 评论