下面四个标注用来定义 bean, 自动根据 bean 的类名生成一个首字母小写的 bean

@Component  标注普通的Spring Bean类
@Controller  标注控制器组件类
@Service  标注业务逻辑组件类
@Repository  标注一个DAO组件类