Spring自动化装配

自动化装配

1.1@ComponentScan启用组件扫描
@Configuration
@ComponentScan
public class CDPlayerConfig {
}

1.2XML启用组件扫描
//其中soundsystem是包名

2.1实现自动装配


你可能感兴趣的:(Spring开发)