一、隐式的bean发现机制和自动装配机制 1、自动扫描:通过带有 @Component注解来让spring替我们自动扫描组组件(语句用在类前定义) ,还可以用@Component("")命名bean名字,使用@Component扫描