前言:
我们先来了解一下什么是Mybatis plugin
提供Mapper接口与配置文件中对应SQL的导航
编辑XML文件时自动补全
根据Mapper接口, 使用快捷键生成xml文件及SQL标签
ResultMap中的property支持自动补全,支持级联(属性A.属性B.属性C)
快捷键生成@Param注解
XML中编辑SQL时, 括号自动补全
XML中编辑SQL时, 支持参数自动补全(基于@Param注解识别参数)
自动检查Mapper XML文件中ID冲突
自动检查Mapper XML文件中错误的属性值
支持Find Usage
支持重构从命名
支持别名
自动生成ResultMap属性
打开IDEA >> File >> Settings 输入plugis搜索找到plugis然后点击Browse repositoties,如下图

进入下一个页面之后搜索mybatis plugin选择Mybatis plugin那一项点击Install下载,如下图

下载后的位置

接下来重启一下,如果你有钱你可以自己激活就结束了,如果跟我一样穷屌丝那就接着看下面如何破解的吧
破解工具地址:https://github.com/myoss/profile

将文件下载下来,打开文件夹选择对应的版本。借用别人的图,其实就是使用下载下来某一个版本里的com文件替换掉原始的com文件,记住只是去替换掉不要去解压MybatisPlugin.jar文件

然后重启,这样Windows上的就完成了,在项目中会在dao和mapper文件中出现对应的箭头,如图:


Mybatis plugin就安装破解结束了
网友评论