springboot|mybatis扫描任意路径下的mapper文件
springboot与mybatis整合时会发现mapper文件必须放在resource下,这样对于一些人很不习惯。这样我们说一下解决办法。**application.yml的配置**mybatis: config-location:classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径 mapper-locations...
原创
2018-11-02 16:02:12 ·
23849 阅读 ·
0 评论