首先是在maven的环境下,我出现的这种情况。
解决办法如下:
在安装有jrebel插件的eclipse项目点右键,选择Jrebel菜单,里面的子菜单,添加一个jrebel文件的,点击之后在项目里面生成一个rebel.xml。在maven的pom.xml里面配置一下jrebel,在build的plugins里面
<!-- 添加jrebel热部署 -->
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<!-- <executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions> -->
<configuration>
<rebelXmlDirectory>${basedir}/target/classes</rebelXmlDirectory>
</configuration>
</plugin>
本文介绍如何在Maven项目中配置JRebel插件实现代码修改后的即时热更新,避免重启服务器,提高开发效率。主要步骤包括在Eclipse中手动创建rebel.xml配置文件,并在pom.xml中添加相应的JRebel Maven插件配置。
702

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



