Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2023.3.2不生效 #11

Open
Jasonyou-boy opened this issue May 15, 2024 · 5 comments
Open

2023.3.2不生效 #11

Jasonyou-boy opened this issue May 15, 2024 · 5 comments

Comments

@Jasonyou-boy
Copy link

IDEA:2023.3.2
image

Jrebel:2024.2.1
image
mybatisPlus:3.5.5
不生效,重写构建没有反应

@SweetInk
Copy link
Owner

mybatis-plus的热加载插件是哪个版本呢

@Jasonyou-boy
Copy link
Author

image
最新版本0.0.6
image
tong通过日志可以看出Jrebel已经加载相应的插件,但是并不会触发更新

@Jasonyou-boy
Copy link
Author

2024-06-05 17:00:50.303 INFO  [0] [MyBatis] Monitoring resource 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-system/target/classes/mapper/OrderRecordMapper.xml' from 'file [E:\Code\JavaProject\workspace\HXZH-Admin\ruoyi-system\target\classes\mapper\OrderRecordMapper.xml]'
2024-06-05 17:00:50.306 INFO  [0] [Transform] sun.misc.Launcher$AppClassLoader@18b4aac2 instrumented class 'com/ruoyi/common/enums/OrderBrokerageStatusEnum' from 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-common/target/classes/com/ruoyi/common/enums/OrderBrokerageStatusEnum.class'.
2024-06-05 17:00:50.308 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@14b9817b[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@3052395d]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.308 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@784c74e[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@3052395d]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.321 INFO  [0] [Core] sun.misc.Launcher$AppClassLoader@18b4aac2 found resource: 'org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd' from 'jar:file:/D:/Maven/apache-maven-3.9.0/mvn-repo/org/mybatis/mybatis/3.5.13/mybatis-3.5.13.jar!/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd'.
2024-06-05 17:00:50.321 INFO  [0] [Core] sun.misc.Launcher$AppClassLoader@18b4aac2 found resource: 'org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd' from 'jar:file:/D:/Maven/apache-maven-3.9.0/mvn-repo/org/mybatis/mybatis/3.5.13/mybatis-3.5.13.jar!/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd'.
2024-06-05 17:00:50.323 INFO  [0] [MyBatis] Monitoring resource 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-system/target/classes/mapper/TaskMapper.xml' from 'file [E:\Code\JavaProject\workspace\HXZH-Admin\ruoyi-system\target\classes\mapper\TaskMapper.xml]'
2024-06-05 17:00:50.324 INFO  [0] [Transform] sun.misc.Launcher$AppClassLoader@18b4aac2 instrumented class 'com/ruoyi/common/enums/TaskStatus' from 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-common/target/classes/com/ruoyi/common/enums/TaskStatus.class'.
2024-06-05 17:00:50.327 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@5bfeb9ba[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@4cf1bd4a]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.327 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@445f6aa7[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@4cf1bd4a]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.330 INFO  [0] [Core-Virtual] File 'E:\Code\JavaProject\workspace\HXZH-Admin\ruoyi-system\target\classes\com\ruoyi\system\converter\SexConverter.class' found for resource 'com/ruoyi/system/converter/SexConverter.class'.

从日志中可以明显看到我的Mapper.xml有被监测到,但是没有找到触发更新的日志

@SweetInk
Copy link
Owner

2024-06-05 17:00:50.303 INFO  [0] [MyBatis] Monitoring resource 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-system/target/classes/mapper/OrderRecordMapper.xml' from 'file [E:\Code\JavaProject\workspace\HXZH-Admin\ruoyi-system\target\classes\mapper\OrderRecordMapper.xml]'
2024-06-05 17:00:50.306 INFO  [0] [Transform] sun.misc.Launcher$AppClassLoader@18b4aac2 instrumented class 'com/ruoyi/common/enums/OrderBrokerageStatusEnum' from 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-common/target/classes/com/ruoyi/common/enums/OrderBrokerageStatusEnum.class'.
2024-06-05 17:00:50.308 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@14b9817b[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@3052395d]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.308 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@784c74e[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@3052395d]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.321 INFO  [0] [Core] sun.misc.Launcher$AppClassLoader@18b4aac2 found resource: 'org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd' from 'jar:file:/D:/Maven/apache-maven-3.9.0/mvn-repo/org/mybatis/mybatis/3.5.13/mybatis-3.5.13.jar!/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd'.
2024-06-05 17:00:50.321 INFO  [0] [Core] sun.misc.Launcher$AppClassLoader@18b4aac2 found resource: 'org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd' from 'jar:file:/D:/Maven/apache-maven-3.9.0/mvn-repo/org/mybatis/mybatis/3.5.13/mybatis-3.5.13.jar!/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd'.
2024-06-05 17:00:50.323 INFO  [0] [MyBatis] Monitoring resource 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-system/target/classes/mapper/TaskMapper.xml' from 'file [E:\Code\JavaProject\workspace\HXZH-Admin\ruoyi-system\target\classes\mapper\TaskMapper.xml]'
2024-06-05 17:00:50.324 INFO  [0] [Transform] sun.misc.Launcher$AppClassLoader@18b4aac2 instrumented class 'com/ruoyi/common/enums/TaskStatus' from 'file:/E:/Code/JavaProject/workspace/HXZH-Admin/ruoyi-common/target/classes/com/ruoyi/common/enums/TaskStatus.class'.
2024-06-05 17:00:50.327 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@5bfeb9ba[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@4cf1bd4a]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.327 INFO  [0] [Core-SDK] Added reload listener weak[org.zeroturnaround.javarebel.integration.util.ClassLoaderLocalUtil$DestructibleClassEventListenerAdapter@445f6aa7[com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder@4cf1bd4a]] for [email protected]$AppClassLoader@18b4aac2 hierarchy [[email protected]$AppClassLoader@18b4aac2]
2024-06-05 17:00:50.330 INFO  [0] [Core-Virtual] File 'E:\Code\JavaProject\workspace\HXZH-Admin\ruoyi-system\target\classes\com\ruoyi\system\converter\SexConverter.class' found for resource 'com/ruoyi/system/converter/SexConverter.class'.

从日志中可以明显看到我的Mapper.xml有被监测到,但是没有找到触发更新的日志

这个日志,是你启动应用后,IDEA控制台输出的吗?
当你修改你的mapper.xml后,你看下/target/classes/mapper/目录下对应的mapper.xml是否是你修改后的

@Jasonyou-boy
Copy link
Author

这个日志是我查看jrebel截取的一部分 控制台日志只打印过加载插件成功 更新后不会显示重载 但是偶尔视乎是可更新的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants