Polishing
This commit is contained in:
parent
ef4ffa0005
commit
fdcea58a53
|
|
@ -198,9 +198,9 @@ controller method xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation]
|
|||
TIP: Using `@ModelAttribute` is optional. By default, any argument that is not a simple
|
||||
value type as determined by
|
||||
{spring-framework-api}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty]
|
||||
_AND_ that is not resolved by any other argument resolver is treated as an `@ModelAttribute`.
|
||||
_AND_ that is not resolved by any other argument resolver is treated as an implicit `@ModelAttribute`.
|
||||
|
||||
WARNING: When compiling to native images, implicit `@ModelAttribute` as described above does
|
||||
not allow proper ahead-of-time inference of related data binding reflection hints. As a consequence,
|
||||
it is recommended to annotate explicitly with `@ModelAttribute` method parameters for such use case
|
||||
with GraalVM.
|
||||
WARNING: When compiling to a native image with GraalVM, the implicit `@ModelAttribute`
|
||||
support described above does not allow proper ahead-of-time inference of related data
|
||||
binding reflection hints. As a consequence, it is recommended to explicitly annotate
|
||||
method parameters with `@ModelAttribute` for use in a GraalVM native image.
|
||||
|
|
|
|||
|
|
@ -243,9 +243,9 @@ xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].
|
|||
TIP: Using `@ModelAttribute` is optional. By default, any parameter that is not a simple
|
||||
value type as determined by
|
||||
{spring-framework-api}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty]
|
||||
_AND_ that is not resolved by any other argument resolver is treated as an `@ModelAttribute`.
|
||||
_AND_ that is not resolved by any other argument resolver is treated as an implicit `@ModelAttribute`.
|
||||
|
||||
WARNING: When compiling to native images, implicit `@ModelAttribute` as described above does
|
||||
not allow proper ahead-of-time inference of related data binding reflection hints. As a consequence,
|
||||
it is recommended to annotate explicitly with `@ModelAttribute` method parameters for such use case
|
||||
with GraalVM.
|
||||
WARNING: When compiling to a native image with GraalVM, the implicit `@ModelAttribute`
|
||||
support described above does not allow proper ahead-of-time inference of related data
|
||||
binding reflection hints. As a consequence, it is recommended to explicitly annotate
|
||||
method parameters with `@ModelAttribute` for use in a GraalVM native image.
|
||||
|
|
|
|||
Loading…
Reference in New Issue