Open
Description
I found ClassPathMapperScanner may scan annotations in the package path as CandidateComponent,
but CandidateComponent should not include annotation type.(Am I right?)
File: src/main/java/org/mybatis/spring/mapper/ClassPathMapperScanner.java.
Method isCandidateComponent
of ClassPathMapperScanner
should exclude annotation bean definition.
protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
return beanDefinition.getMetadata().isInterface() && beanDefinition.getMetadata().isIndependent()
&& !beanDefinition.getMetadata().isAnnotation();
}
Metadata
Metadata
Assignees
Labels
No labels