A
@AutoWired Spring官方提供注解(注入bean注解)
B
@Bean 作用于方法上,相当于xml文件中声明当前方法返回值为一个bean
C
@Component 在类定义之前添加@Component注解,他会被spring容器识别,并转为bean。(声明bean注解)
@Controller 用于控制层注解 ,标注当前类为一个控制器(声明bean注解)
@Configuration 作用于类上,将当前类声明为一个配置类,相当于一个xml配置文件
@ConmponentScan 自动扫描指定包下标注有@Repository,@Service,@Controller
D
E
@EnableDubbo //启动dubbo
@EnableTransactionManagement // 启动事务管理器
F
G
H
I
@InJest JSR-330提供注解(注入bean注解)
J
K
L
M
@MapperScan(“cn.xxx.dao”) //扫描(“cn.xxx.dao”)
N
O
P
@PropertySource 加载配置文件
Q
R
@Repository 对控制访问层(Dao)进行注解,类级别进行声明(声明bean注解)
@Resource JSR-250提供注解 (注入bean注解)
S
@Service 用于对业务逻辑层进行注解,类级别进行声明(声明bean注解)
@SpringBootApplication SpringBoot核心注解(自动装配)
T
@Transactional //配置事务
U
V
@Value 获取properties文件指定key values值
W
X
Y
Z