You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably you can scan only interfaces that annotated the @Mapper invoking ClassPathMapperScanner.setAnnotationClass(Mapper.class) .
The @Mapper has been added as the optional annotation for narrowing down target interfaces on DI container like CDI or Spring's ApplicationContext.
For details see mybatis/mybatis-3#629.
Note:
This annotation is used the MybatisAutoConfiguration provided by mybatis-spring-boot-starter.
when scan interfaces it will proxy all interface even it does not contains @Mapper interface.
https://github.com/mybatis/spring/blob/master/src/main/java/org/mybatis/spring/mapper/ClassPathMapperScanner.java#L216
example :
will create MapperFactoryBean proxy without @Mapper
The text was updated successfully, but these errors were encountered: