解决使用jrebel,集成在eclipse的tomcat里面,修改类和jsp都可以加载修改后的类和文件,无法马上更新修改过的jsp

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27361727/article/details/74276536

首先是在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>

猜你喜欢

转载自blog.csdn.net/qq_27361727/article/details/74276536
今日推荐