SpringBoot注解分析
SpringBoot注解分析
常用注解
@Component
放在类上,把普通类实例化到spring容器中。大多数注解都基于这个注解
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
public @interface Component {
/**
* The value may indicate a suggestion for a logical component name,
原创
2020-07-01 15:32:17 ·
498 阅读 ·
0 评论