quarkus 热部署而不保存文件

quarkus hot deploy without saving file

我使用热部署./mvnw compile quarkus:dev。根据文档,我只需要更改文件 而无需保存 并刷新浏览器。但是,在我的例子中,热部署只有在我 在请求页面 之前保存文件时才有效。我使用了 quarkus quickstarts 中的 getting-started-project。我的问题是:这是正确的行为吗(更改文件->保存文件->请求页面)和以下语句错误(更改文件->请求页面):

https://www.baeldung.com/quarkus-io(第 4 部分:热重载)

In other words, changes made to Java files or to configuration files will automatically be compiled once the browser is refreshed. The most impressive feature here is that we don't need to save our files. This could be good or bad, depending on our preference.

您绝对需要保存文件以触发热重载。

更新是根据文件时间戳来改变的。

您不需要重新编译您的应用程序或重新启动任何东西。