mapper目录结构:
 
mapper
----dev
-------produce
 
在 application.properties 文件中配置
mybatis.mapper-locations=classpath:mapper/dev/*/*.xml, mapper/dev/*.xml
 
 mybatis config.xml  是通过配置文件配置

相关文章: