以前使用jrebel,集成在eclipse的tomcat里面,修改类和jsp都可以加载修改后的类和文件,但是不知道从什么时候开始,如果使用jrebel,就无法马上更新修改过的jsp,如果不是用jrebel,就能马上更新,但是却无法热部署了。
不清楚是不是使用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>
?
