springboot 之 指定mybatis中mapper文件扫描路径

所有的mapper映射文件

mybatis.mapper-locations=classpath*:com/springboot/mapper/*.xml

或者resource下的mapper映射文件

mybatis.mapper-locations=classpath*:mapper/**/*.xml
发布了200 篇原创文章 · 获赞 13 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/u013919153/article/details/105618007