记录平时使用JRebel遇到的问题:
使用IDE自带debug一切正常,使用JRebeldebug发布的项目还是以前的。
分析过程:
项目rebuild,各种清缓存,IDE退了重进,电脑重启统统没有效果。后来想到这个项目是我从公司电脑copy过来的,可能是jrebel描述文件记录了一些信息。
错误原因:
jrebel为项目添加一个.xml文件,里面有一些项目描述信息。
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
Refer to https://manuals.zeroturnaround.com/jrebel/standalone/config.html for more information.
-->
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd">
<classpath>
<dir name="D:/IDEA/rtc/web/target/classes">
</dir>
</classpath>
<web>
<link target="/">
<dir name="D:/IDEA/rtc/web/src/main/webapp">
</dir>
</link>
</web>
</application>
解决办法:
修改<dir name="D:/IDEA/rtc/web/src/main/webapp">,将name属性值改为本项目对应路径即可。

7982

被折叠的 条评论
为什么被折叠?



