@controller:(注入服务) @service(注入dao) @repository dao(实现dao访问) @component(把普通的pojo类实例化到spring容器中,相当于配置文件<bean id="" class="">)