You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we need a dynamic configuration, it can be very helpful to use a map. For example, let's say that I want to keep in my configuration the custom reason phrases to return to the enduser according to the http status code.
I would like to have:
The expected code
@ConfigProperty(name = "reasons")
Map<Integer, String> reasonPhrases; // or eventually Map<String, String>
The expected configuration
reasons.200=My custom reason phrase for OK
reasons.201=My custom reason phrase for Created
...
The text was updated successfully, but these errors were encountered:
Description
When we need a dynamic configuration, it can be very helpful to use a map. For example, let's say that I want to keep in my configuration the custom reason phrases to return to the enduser according to the http status code.
I would like to have:
The expected code
The expected configuration
The text was updated successfully, but these errors were encountered: