@Component spring
@Transactional code
一、@controller 控制器(注入服务) 二、@service 服务(注入dao) 三、@repository dao(实现dao访问) 四、@component (把普通pojo实例化到spring容器中,至关于配置文件中的<bean id="" class=""/>)