@Component :相当于创建一个bean
@Service: 写在service实现类中中相当于conponent
@Repository{
都一样
@Controller }
@Resource :java提供的 ,默认按照byName
@AutoWire spring的 默认按照byType