简体   繁体   English

如何在 Quarkus 中禁用实时重新加载?

[英]How to disable live reloading in Quarkus?

I have a Qurkus application which I run in Dev mode:我有一个在 Dev 模式下运行的 Qurkus 应用程序:

./mvnw compile quarkus:dev

I have an issue that Quarkus reloads classes also when I don't want it to (dependent project updated, etc) which takes quite a lot of time.我有一个问题,即当我不希望 Quarkus 重新加载类时(依赖项目更新等),这需要相当多的时间。

Question: Is there a way to disable live reloading in dev mode?问题:有没有办法在开发模式下禁用实时重新加载?

I went through the Quarkus documentation, but couldn't find if there is such an option.我浏览了 Quarkus 文档,但找不到是否有这样的选项。

You can disable it with Quarkus since 2.0.0.Alpha3 by enabling the corresponding option in the console (Quarkus tells you which key you need to press to do that - it's l ).2.0.0.Alpha3开始,您可以通过在控制台中启用相应的选项来禁用它(Quarkus 会告诉您需要按哪个键来执行此操作 - 它是l )。

See https://github.com/quarkusio/quarkus/pull/17035 for the pull request that brought this feature有关带来此功能的拉取请求,请参阅https://github.com/quarkusio/quarkus/pull/17035

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

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