Package io.quarkus.runtime
Interface ConfigConfig
@ConfigMapping(prefix="quarkus")
@ConfigRoot(phase=RUN_TIME)
@ConfigDocPrefix("quarkus.config")
public interface ConfigConfig
Configuration.
We don't really use this, because these are configurations for the config itself, so it causes a chicken / egg
problem, but we need it for documentation purposes.
Relocation of the Config configurations to the Quarkus namespace is done in
ConfigUtils.configBuilder(boolean, io.quarkus.runtime.LaunchMode).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionWhat should happen if the application is started with a different build time configuration than it was compiled against.Additional config locations to be loaded with the Config.Enable logging of configuration values lookup in DEBUG log level.Validates that a@ConfigMappingmaps every available configuration name contained in the mapping prefix.profile()A comma separated list of profiles that will be active when Quarkus launches.Accepts a single configuration profile name.
-
Method Details
-
profile
A comma separated list of profiles that will be active when Quarkus launches. -
profileParent
Accepts a single configuration profile name. If a configuration property cannot be found in the current active profile, the config performs the same lookup in the profile set by this configuration. -
locations
Additional config locations to be loaded with the Config. The configuration support multiple locations separated by a comma and each must represent a validURI. -
mappingValidateUnknown
Validates that a@ConfigMappingmaps every available configuration name contained in the mapping prefix. -
logValues
Enable logging of configuration values lookup in DEBUG log level.
The log of configuration values require the category set toDEBUGin theio.smallrye.configcategory:quarkus.log.category."io.smallrye.config".level=DEBUG. -
buildTimeMismatchAtRuntime
@WithName("config.build-time-mismatch-at-runtime") @WithDefault("warn") ConfigConfig.BuildTimeMismatchAtRuntime buildTimeMismatchAtRuntime()What should happen if the application is started with a different build time configuration than it was compiled against. This may be useful to prevent misconfiguration.If this is set to
warnthe application will warn at start up.If this is set to
failthe application will fail at start up.Native tests leveraging
@io.quarkus.test.junit.TestProfileare always run withquarkus.config.build-time-mismatch-at-runtime = fail.
-