Skip to content

Commit

Permalink
3.x: Clarify description of config profiles (helidon-io#9187)
Browse files Browse the repository at this point in the history
* Clarify description of config profiles
  • Loading branch information
barchetta authored Aug 21, 2024
1 parent a510bee commit ee6dbe9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docs/mp/config/introduction.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

///////////////////////////////////////////////////////////////////////////////

Copyright (c) 2020, 2023 Oracle and/or its affiliates.
Copyright (c) 2020, 2024 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -127,9 +127,14 @@ server.host=0.0.0.0
==== {spec-name} Profiles [[Config-Profiles]]
{spec-name} supports a concept of configuration profiles. You can define a profile using the configuration property `mp.config.profile`
(when using default configuration, this can be defined as a system property, environment variable or as a property in `microprofile-config.properties`).
When a profile is defined, additional config source is loaded (`microprofile-config-profile.properties`) and properties from profile have precedence over
default properties. Profile properties can be defined using `%profile` prefix, such as `%dev.server.port`.
This can be defined as a system property, environment variable or as a property in `microprofile-config.properties` (when default configuration is used).
When a profile is defined, an additional config source is loaded: `microprofile-config-<profile_name>.properties` and properties in the profile
specific config source will override properties set in the default config source.
You can also use profiles on a per property level. Profile specific properties are defined using `%<profile_name>` prefix, such as `%dev.server.port`.
This will override the plain property `server.port`.
For more details see link:{microprofile-config-spec-url}#_how_config_profile_works[How Config Profiles work]
=== Helidon {spec-name} Features
Expand Down

0 comments on commit ee6dbe9

Please sign in to comment.