JRebel使用错误记录

记录平时使用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属性值改为本项目对应路径即可。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值