Closed
Description
when scan interfaces it will proxy all interface even it does not contains @Mapper interface.
protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
return beanDefinition.getMetadata().isInterface() && beanDefinition.getMetadata().isIndependent();
}
should be check has @Mapper annotation like this?
protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
return beanDefinition.getMetadata().isInterface() && beanDefinition.getMetadata().isIndependent()
&& beanDefinition.getMetadata().hasAnnotation(Mapper.class.getName());
}
example :
interface Example {
....
}
will create MapperFactoryBean proxy without @Mapper
Metadata
Metadata
Assignees
Labels
No labels