简体   繁体   English

quarkus热部署而不保存文件

[英]quarkus hot deploy without saving file

I use hot deploy ./mvnw compile quarkus:dev . 我使用热部署./mvnw compile quarkus:dev According to the documentation, I do only need to change the files without saving it and refresh the browser. 根据文档,我只需要更改文件而不保存文件并刷新浏览器。 However, in my case hot deploy does only work if I save the file before requesting the page . 但是,在我的情况下,仅当我在请求页面之前保存文件时,热部署才起作用。 I used the getting-started -project from quarkus quickstarts. 我使用quarkus快速入门工具入门 -项目。 My question is: Is this the right behaviour ( change file->save file->request page ) and the following statement wrong ( change file->request page ): 我的问题是:这是正确的行为( 更改文件->保存文件->请求页面 ),以下语句是否错误( 更改文件->请求页面 ):

https://www.baeldung.com/quarkus-io (section 4: hot reload) 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. 换句话说,刷新浏览器后,将自动编译对Java文件或配置文件所做的更改。 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. 这可能是好是坏,取决于我们的偏好。

You absolutely need to save your files for hot reload to be triggered. 您绝对需要保存文件才能触发热重装。

The update is based on the file timestamps to have changed. 该更新基于要更改的文件时间戳。

What you don't need is recompiling your application or restarting anything. 您不需要重新编译应用程序或重新启动任何程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM