之前搭建了@Select标签来做SringBoot+Mybatis的集成。这次使用@SelectProvider标签的方式搭建一次。
一、搭建SpringBoot的项目
https://start.spring.io/自己配置SpringBoot的项目,点击“Generate Project”按钮就可以下载下来一个配置好的SpringBoot项目。

二、项目结构

三、项目代码
SpringBoot+Mybatis 框架之 @SelectProvider注解方式搭建
原文:https://www.cnblogs.com/Lyh1997/p/10195183.html