在springcloud项目中用mybatis-plus作为持久化层比较流行MyBatisCodeHelper-Pro做为idea的插件可以非常方便的生成mybatis-plus相关代码包括serviceserviceimplmapperdomainmapper.xml等文件。但要注意idea与MyBatisCodeHelper-Pro的版本必须匹配。idea:ideaIC-2020.1.4.exeMyBatisCodeHelper-Pro:MybatisCodeHelperNew-2.8.2-183-201.zipidea下载地址其他版本 - IntelliJ IDEA获取 IntelliJ IDEA 的历史版本。https://www.jetbrains.com/zh-cn/idea/download/other.htmlMyBatisCodeHelper-Pro插件下载地址链接: https://pan.baidu.com/s/1_ydWBy_yepFSZXLEp9Lv8w提取码: qwer导入插件方法选择from Disk本地安装插件。版本不匹配时idea导入MyBatisCodeHelper-Pro插件会报错如下图idea版本过高时MyBatisCodeHelper-Pro插件应用配置信息如下生成代码如下