Skip to content

Commit df7ac9b

Browse files
committed
Polish "Fix error codes in Customizing Validation Errors section"
See gh-33354
1 parent 43217bd commit df7ac9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

framework-docs/modules/ROOT/pages/core/validation/beanvalidation.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,14 @@ To customize the default message, you can add properties to
439439
xref:core/beans/context-introduction.adoc#context-functionality-messagesource[MessageSource]
440440
resource bundles using any of the above errors codes and message arguments. Note also that the
441441
message argument `"name"` is itself a `MessagreSourceResolvable` with error codes
442-
`"student.name"` and `"name"` and can customized too. For example:
442+
`"person.name"` and `"name"` and can customized too. For example:
443443

444444
Properties::
445445
+
446446
[source,properties,indent=0,subs="verbatim,quotes",role="secondary"]
447447
----
448-
Size.student.name=Please, provide a {0} that is between {2} and {1} characters long
449-
student.name=username
448+
Size.peron.name=Please, provide a {0} that is between {2} and {1} characters long
449+
person.name=username
450450
----
451451

452452
A `ConstraintViolation` on the `degrees` method parameter is adapted to a

0 commit comments

Comments
 (0)