wx7614140 / jrebel-mybatisplus

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jrebel-mybatisplus

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

(中文|English)

如何使用

构建插件

git clone git@github.com: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”

参考

Custom JRebel plugins

Getting Started with Javassist

About

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

License:MIT License


Languages

Language:Java 100.0%