首页 > 技术文章 > spring boot 多层级mapper

zhangXingSheng 2017-10-27 20:09 原文

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

推荐阅读