Overview
The findAutowiredAnnotation() method in AutowiredAnnotationBeanPostProcessor fully supports finding @Autowired as a meta-annotation; however, the isRequired() method in QualifierAnnotationAutowireCandidateResolver only finds @Autowired as a "directly present" annotation without any support for meta-annotations.
For consistency, and to avoid bugs, we should always support @Autowired as a meta-annotation.
Related Issues
Overview
The
findAutowiredAnnotation()method inAutowiredAnnotationBeanPostProcessorfully supports finding@Autowiredas a meta-annotation; however, theisRequired()method inQualifierAnnotationAutowireCandidateResolveronly finds@Autowiredas a "directly present" annotation without any support for meta-annotations.For consistency, and to avoid bugs, we should always support
@Autowiredas a meta-annotation.Related Issues
@Validatedas a meta-annotation at arbitrary depths #36305@Lazyas a meta-annotation at arbitrary depths #36306requiredattribute lookup for@Autowiredannotations #36314