idea 安装 mybatis 插件MyBatisCodeHelper-Pro

一安装MyBatisCodeHelper-Pro

   1.file->选择setting里面的plugins 

    2.在搜索框中输入MyBatisCodeHelper-Pro  

    3.安装该插件 ,重启idea即可使用

 

二.基本使用(未激活时可以使用的功能)

  1. mapper接口和mapper文件之间的相互跳转

   单击左边的图标就可以实现mapper接口和mapper文件之间对应方法的跳转功能

           

       2  左边的图标更改:setting -> other settings -> MyBatisCodeHelper-Pro -> mapper icon 如下图:

3.自动重构

    修改mapper映射文件中的标签的id属性值后,mapper接口中的对应方法名会自动进行修改,而且反之亦然

    技巧01:将光标放到mapper映射文件中的标签的id属性值上或者mapper接口的方法名上,按 shift + F6 后就可以进行修改啦,修改完成后再按回车按钮进行确认操作

    快捷键:shift + F6

 4 .自动补全功能

    编辑mapper映射文件中的内容时会自动进行补全操作

5.一键删除操作

    mapper映射文件和mapper接口中有不对应时,mapper映射文件中的内容会变成灰色,mapper接口中的内容会变成红色;此时将光标放到这些区域按 alt + enter 后就可以选择补全对应代码或者进行一键删除操作

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MyBatisCodeHelper-Pro插件免费版 Features Type safe sql support, plugin can recognize mybatis dynamic sql Code Formatter Generate mybatis crud code by Intellij database table or add a database connection Generate mybatis sql based on mybatis interface method name like spring data jpa, with this, you don't have to write most sql for non join query support generate statement with if test Database generate crud could generate multiple times when you add or delete columns, plugin will auto merge code Full mybatis sql auto complete, recognize mybatis tag in xml, like where trim set include ect,provide sql completion after those tag Jump from mybatis dao interface to mapper xml each other Refactor for mybatis interface method name,refid,resultMap ect Auto complete for mybatis param,if test,foreach,resultMap,refid in sql Generate create table sql from java class Mybatis Param refactor and inspection Ognl support, if test when test ${ bind foreach collection, refactor and inspection and auto completion Jump from refid resultMap to their definition, refactor their name as well Generate page query by mapper interface method Spring support for mybatis, inject mybatis mapper to spring bean,support SpringBoot Refid,resultMap,keyProperty,property auto complete Add @param for mapper method Resultmap column complete and inspection by parse reference select statement Auto map resultMap column and property Generate mybatis mapper testcase from mybatis interface method by database connection, make you test method quicker Full inspection for mybatis, like unused sql in xml, mapper method not have sql in xml, check if resultMap property is right ect https://github.com/gejun123456/MyBatisCodeHelper-Pro to learn more. How to use view on https://github.com/gejun123456/MyBatisCodeHelper-Pro qqGroup:914051156
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值