如题 修改了 mappler 里的 sql ,无法动态载入。
需要 idea 加载能动态加载修改 sql 后的 mapper ,类似 classea 动态载入最好。
1 ltf127001 273 天前 JRebel and Xrebel+JRebel mybatisPlus extension 这两个插件,但是第一个是收费的 |
![]() | 2 INTOX8O 273 天前 同在找,插个眼 |
![]() | 3 wxyrrcj 273 天前 JRebel and Xrebel+JRebel mybatisPlus extension |
![]() | 4 iv8d OP jrebel 刚看了下,收费的,无法绕过#.# |
6 IBN5100 273 天前 |
7 HalloCQ 273 天前 ![]() HotSwapHelper |
![]() | 8 weijancc 273 天前 唯一解决方案就是 jrebel+mybatis 插件, 没有其他的 |
9 31415926535x 273 天前 本地测试的话搞个异步线程监听 mapper 文件的变动来刷新就行,eg:https://juejin.cn/post/7403426280940634112 |
![]() | 10 gejun123456 273 天前 ![]() 可以试试 intellij 的 https://gitee.com/gejun123456/HotSwapHelper HotSwapHelper 插件,功能类似 jrebel 完美兼容 springboot+mybatis 项目的热加载,目前测试已支持若依 ruoyi vue pro ,jeecg 等项目,支持比如 controller 加 url ,mybatis 增删改 xml 等 |
![]() | 11 gejun123456 273 天前 @INTOX8O @weijancc 可以试试 HotSwapHelper https://gitee.com/gejun123456/HotSwapHelper 基于 HotSwapAgent 这个开源免费的,兼容 springboot+mybatis+mybatisplus 项目,目前测试已支持若依,ruoyivuepro ,jeecg 等项目,支持增删改方法字段,增删改 xml 等热加载,还支持 spring 加减 bean ,controller 加减 url 等。 |
![]() | 12 weijancc 273 天前 @gejun123456 牛啊老哥! |
![]() | 16 iv8d OP 找到一种方式 https://blog.csdn.net/qq_24434671/article/details/90258908 ##存在问题 目前仅支持单项目运行,如果依赖包中也有 xml 引用到,当扫描时无法读取到会报错。 |
![]() | 17 iv8d OP ## 找到的一些方案 ## JRebel (too expensive $550 per year per user) Spring-Loaded (cannot work properly with java 8 and crash JVM , the Spring team propagates the "Restart application on file-change"-approach of spring-boot-devtools for Spring Boot) FakeReplace (No JDK10+ support yet) RelProxy (Dead? No support for JDK8+) DCEVM (free-opensource-reallyhot ) |