Skip to content

Commit

Permalink
Merge pull request #45626 from maxandersen/vilduhakebab
Browse files Browse the repository at this point in the history
docs: more explicit examples
  • Loading branch information
radcortez authored Jan 16, 2025
2 parents 4088418 + cd3f7d7 commit 2045b8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/main/asciidoc/config-mappings.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ server.theHost=localhost
server.thePort=8080
----

The `@ConfigMapping` annotation support the following naming strategies:
The `@ConfigMapping` annotation support the following naming strategies with the following enum values:

- `KEBAB_CASE` (default) - The method name is derived by replacing case changes with a dash to map the configuration property.
- `VERBATIM` - The method name is used as is to map the configuration property.
- `SNAKE_CASE` - The method name is derived by replacing case changes with an underscore to map the configuration property.
- `KEBAB_CASE` (default) - The method name is derived by replacing case changes with a dash to map the configuration property, i.e. `theHost` maps to `the-host`.
- `VERBATIM` - The method name is used as is to map the configuration property, i.e. `theHost` maps to `theHost`.
- `SNAKE_CASE` - The method name is derived by replacing case changes with an underscore to map the configuration property, i.e. `theHost` maps to `the_host`.

=== Conversions

Expand Down

0 comments on commit 2045b8c

Please sign in to comment.