需求分析

   1 spring boot 集成 mybaits 

   2  mybatis使用XML作为数据源接口实现类

   3  要让程序可以扫描到XML文件

技术选型

     1  spring boot 配置   mybatis.mapper-locations

     2   模糊配置

 落地代码    

    classpath*:com/znxk/basic/**/dao/mapping/*.xml

 

落地代码解释

        扫描类路径下,basic包下,dao包下的 mapping包下所有以xml文件结尾的文件

更多推荐

spring boot集成mybatis mybatis.mapper-locations 属性配置