为大家推荐一个idea的mybatis插件----free mybatis plugin(或 Free MyBatis Tool),很好用(个人觉得free mybatis plugin更好用一点,可以通过按住ctrl+alt+鼠标点击mapper方法后,直接跳转定位到xml文件的实现sql)
注意:2020版本后的idea没有了free mybatis plugin这个插件,只能使用 Free MyBatis Tool 插件了(free mybatis plugin插件仓库最新版是2019.12.18,作者已经闭源)
free-idea-mybatis是一款增强idea对mybatis支持的插件,主要功能如下:
生成mapper xml文件
快速从代码跳转到mapper及从mapper返回代码
mybatis自动补全及语法错误提示
集成mybatis generator gui界面
根据数据库注解,生成swagger model注解
如何获取:打开idea工具点击file-->settings-->输入free mybatis plugin(或 Free MyBatis Tool)-->点击安装-->然后重启idea即可