Spring常用的注解总结1.装配bean @Component @controller @Service @Repository 2.注入数据的 @Autowired 按照类型注入,只能注入bean类型的数据,如果有多个类型匹配,默认使用属性的名称 作为bean的id,去容器中查找该id的bean并且注入 @Qualifier

- 阅读全文 -