Spring常用注解

一、定时任务  @Scheduled  @EnableScheduling

       @Scheduled注解各参数详解

       @Scheduled不执行的原因   

二、扫描组件  @ComponentScan

使用@ComponentScan自动扫描组件

三、组件 @component

@component的作用详细介绍

1、@controller 控制器(注入服务)

2、@service 服务(注入dao)

3、@repository dao(实现dao访问)

4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class=""/>)

四、缓存  @EnableCaching @Cacheable

Spring Cache 使用 ---@EnableCaching @Cacheable 注解

五、区分实现类  @Qualifier

       Spring的注解@Qualifier用法

六、配置   @Configuration

@Configuration的使用 和作用

原文地址:https://www.cnblogs.com/cheng2015/p/12108550.html