gpt4 book ai didi

quarkus - Quarkus 中哪些配置属性在部署时间/运行时不可更改?

转载 作者:行者123 更新时间:2023-12-04 10:04:47 26 4
gpt4 key购买 nike

我正在阅读 Quarkus documentation about configuration ,这引起了我的注意:

Quarkus does much of its configuration and bootstrap at build time. Most properties will then be read and set during the build time step. To change them, make sure to repackage your application.



我在哪里可以找到 的配置列表不是 可在部署时间/运行时更改?

最佳答案

所有 Quarkus 配置选项都可以在这里找到:
https://quarkus.io/guides/all-config

在某些属性的左侧有一个“锁定”图标,这意味着配置属性在构建时是固定的。旁边没有“锁定”图标的所有其他属性可能会在运行时被覆盖。

例如,quarkus.datasource.jdbc.driver属性在构建时是固定的,这意味着在 dev/test/prod 之间您必须使用相同的 JDBC 驱动程序。另一方面,诸如 quarkus.datasource.jdbc.url 之类的属性可能在运行时被覆盖,所以在开发/测试时它可能指向 jdbc://localhost:5432/myDB在生产中,这个值可以指向生产数据库 URL。

关于quarkus - Quarkus 中哪些配置属性在部署时间/运行时不可更改?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61641736/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com