【发布时间】:2019-08-27 10:02:35
【问题描述】:
我已经在 Intellij IDEA 中为 spring-boot 项目设置了 JRebel,我已按照所有步骤以正确的方式安装它,但它仍然无法正常工作,我有以下 pom.xml 配置:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.7</version>
<configuration>
<addResourcesDirToRebelXml>true</addResourcesDirToRebelXml>
</configuration>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
方框也被选中:
有趣的是,当我对源代码进行更改然后转到字节码或 .properties 时,我可以看到所做的更改,但前端没有任何变化...... 每次编译更改的文件时,我都可以在事件日志中看到以下消息:
从中我可以得出结论,应该应用更改。 我正在使用提供 spring-boot 的开箱即用的 servlet 容器,如果我没记错的话,那就是 - Tomcat。 如果有人知道,你能帮我看看我哪里错了吗?
【问题讨论】:
标签: spring-boot intellij-idea jrebel