application.yml文件中添加配置:
mybatis:
mapper-locations: classpath:mappers/*.xml
(告诉 Mapper 所对应的 XML 文件位置)多个目录用逗号或者分号分隔
如:
mybatis-plus:
mapper-locations: classpath:mapper/action/*.xml,classpath:mapper/moving/*.xml
application.yml文件中添加配置:
mybatis:
mapper-locations: classpath:mappers/*.xml
(告诉 Mapper 所对应的 XML 文件位置)多个目录用逗号或者分号分隔
如:
mybatis-plus:
mapper-locations: classpath:mapper/action/*.xml,classpath:mapper/moving/*.xml