Spring常用注解
Java · 2 notes
- How Spring Autowiring Workshistorical
Dependency resolution by type/qualifier/name metadata and the BeanPostProcessor infrastructure behind annotation injection.
- 2.47 Spring常用注解historical
注解作用 @Configuration 相当于之前的applicationContext.xml,就是一个配置文件 @ComponentScan 配置扫描包,如果有@Controller,@Service,@Repositiry,@Component修饰的,则把它加入ioc容器中 @Bean 配合@