diff --git a/documentation/src/main/docs/config/map-support.md b/documentation/src/main/docs/config/map-support.md index 5f98f15bf..73b948209 100644 --- a/documentation/src/main/docs/config/map-support.md +++ b/documentation/src/main/docs/config/map-support.md @@ -1,10 +1,11 @@ # Map Support SmallRye Config allows injecting multiple configuration parameters as a `Map`. The configuration value syntax is -represented by `=;=` Consider: +represented by `property.name.map-key=value` Consider: ```properties -server.reasons=200=OK;201=Created +server.reasons.200=OK +server.reasons.201=Created ``` The previous configuration could be injected directly in a CDI Bean: @@ -15,7 +16,7 @@ With `@ConfigProperty` @ApplicationScoped public class ConfigBean { @Inject - @ConfigProperty(name = "server.reasons", defaultValue = "200=OK;201=Created") + @ConfigProperty(name = "server.reasons") Map reasons; } ``` @@ -29,6 +30,8 @@ public class Config { } ``` +The `Map` will contains the keys `200` and `201`, which map to the values `OK` and `Created`. + !!!note Only the direct sub properties will be converted into a `Map` and