注意,在maven 项目中,需要新增如下插件
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.8</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
完了之后, 在点击Reimport All Maven Project
请参考
http://manuals.zeroturnaround.com/jrebel/standalone/maven.html#maven-rebel-xml