Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jrebel-mybatisplus

> 编程语言
Open source

A hook plugin for Support MybatisPlus that reloads modified SQL maps.

198 stars0 likes0 views
WebsiteGitHub

About

A hook plugin for Support MybatisPlus that reloads modified SQL maps.

jrebel-mybatisplus

Jrebel mybatisplus热加载插件,支持重新加载修改后的SQL映射

(中文|English)

前置条件

  1. 你的IDE安装了JRebel插件

  2. mybatis-plus:3.1.1+

  3. IDEA Run/Debug Configurations 配置

    On 'Update' actions: Update classes and resources

    On frame deactivation: Update classes and resources

如何使用

已开发IDEA的插件 jrebel-mybatisplus-idea-plugin. 安装插件后即可使用,不需要再配置了。

构建插件

bash
git clone [email protected]:SweetInk/jrebel-mybatisplus.git
cd jrebel-mybatisplus
mvn -f jr-mybatisplus/pom.xml clean package

将构建好的插件jrebel-mybatisplus\target\jr-mybatisplus.jar拷贝至任意目录, 比如: d:\jrebel\plugin\jr-mybatisplus.jar

使用

打开你的IDE(Intellij IDEA or Eclipse),修改运行配置,增加VM参数:-Drebel.plugins=d:\jrebel\plugin\jr-mybatisplus.jar,然后以JRebel方式启动

检查插件是否生效:

修改你项目中的mapper xml 文件后,重新编译,如果重新请求接口,你应该会看到控制台输出 “Reloading SQL maps”

debug相关

输出ctClass到本地

java
public class YourClassCBP extends JavassistClassBytecodeProcessor {
   public void process(ClassPool cp, ClassLoader cl, CtClass ctClass) throws Exception {
      //TODO class modify
      String output = "X:\\workspace\\dump";
      ctClass.writeFile(output);
      if (ctClass.isFrozen()) {
         ctClass.defrost();
      }
   }
}

参考

Custom JRebel plugins

Getting Started with Javassist

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javajrebel-pluginmybatisplus-jrebel

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言