Open Dreampie opened 7 years ago
Hi @Dreampie
Is this feature request ? If this is feature request, please describe a request detail and use case, etc .. If this is question, Please post your question to the mailing list. We use GitHub Issues only to track bugs and feature requests.
Thanks.
yes,it is maybe feature request or question,but I can not access google group,now
@Dreampie I'm not very sure about the context of your problem, but why not try to use mybatis-spring scanner ?
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="org.jasonleaster.**.dao" />
<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory" />
</bean>
MapperScannerConfigurer works well in my project. I have different mapper interface in different package in my project.
@MapperScan support wildcard value, the below code works for me.
@MapperScan( value="org.**.mapper.mysql", sqlSessionFactoryRef="mysqlSessionFactory" )
https://github.com/mybatis/spring-boot-starter/issues/131
successed:
failed: