一.作用域注解、初始化和销毁注解
//XML配置方式:<bean id="someBean" class="com.bigfong.SomeBean" scope="prototype" init-method="open" destroy-method="close">
//注解配置方式
@Component
@Scope("prototype")
public class SomeBean{
public SomeBean(){}
@PostConstruct //构建对象之后
public open(){}
@PreDestroy //销毁之前
public close(){}
}
二.Configuration
三.Bean
四.ComponentScan
五.Import
六.ImportResource
七.PropertySource
八.Profile
九.ActiveProfile