Skip to content

Commit ec613e6

Browse files
committed
Fix a typo in the config mapping @WithParentName documentation section
1 parent 854a56c commit ec613e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/main/asciidoc/config-mappings.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,12 @@ server.port=8080
157157

158158
==== `@WithParentName`
159159

160-
The `@WithParentName` annotation allows to configurations mapping to inherit its container name, simplifying the
160+
The `@WithParentName` annotation allows the configuration mapping property to inherit its container name, simplifying the
161161
configuration property name required to match the mapping:
162162

163163
[source,java]
164164
----
165+
@ConfigMapping(prefix = "server")
165166
interface Server {
166167
@WithParentName
167168
ServerHostAndPort hostAndPort();

0 commit comments

Comments
 (0)