Improve Kotlin + bean validation documentation
Issue: SPR-16701
This commit is contained in:
parent
c82bf0b004
commit
e4298e8366
|
@ -166,11 +166,11 @@ type `Bar` may or may not exist. The same behavior applies to autowired construc
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
If you are using bean validation on classes with
|
If you are using bean validation on classes with properties or a primary constructor
|
||||||
https://kotlinlang.org/docs/reference/classes.html#constructors[primary constructor properties],
|
parameters, you may need to leverage
|
||||||
make sure to use
|
|
||||||
https://kotlinlang.org/docs/reference/annotations.html#annotation-use-site-targets[annotation use-site targets]
|
https://kotlinlang.org/docs/reference/annotations.html#annotation-use-site-targets[annotation use-site targets]
|
||||||
as described in https://stackoverflow.com/a/35853200/1092077[this Stack Overflow response].
|
like `@field:NotNull` or `@get:Size(min=5, max=15)` as described in
|
||||||
|
https://stackoverflow.com/a/35853200/1092077[this Stack Overflow response].
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue