File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
framework-docs/modules/ROOT/pages/web
webflux/controller/ann-methods
webmvc/mvc-controller/ann-methods Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -198,9 +198,9 @@ controller method xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation]
198
198
TIP: Using `@ModelAttribute` is optional. By default, any argument that is not a simple
199
199
value type as determined by
200
200
{spring-framework-api}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty]
201
- _AND_ that is not resolved by any other argument resolver is treated as an `@ModelAttribute`.
201
+ _AND_ that is not resolved by any other argument resolver is treated as an implicit `@ModelAttribute`.
202
202
203
- WARNING: When compiling to native images, implicit `@ModelAttribute` as described above does
204
- not allow proper ahead-of-time inference of related data binding reflection hints. As a consequence,
205
- it is recommended to annotate explicitly with `@ModelAttribute` method parameters for such use case
206
- with GraalVM.
203
+ WARNING: When compiling to a native image with GraalVM, the implicit `@ModelAttribute`
204
+ support described above does not allow proper ahead-of-time inference of related data
205
+ binding reflection hints. As a consequence, it is recommended to explicitly annotate
206
+ method parameters with `@ModelAttribute` for use in a GraalVM native image .
Original file line number Diff line number Diff line change @@ -243,9 +243,9 @@ xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].
243
243
TIP: Using `@ModelAttribute` is optional. By default, any parameter that is not a simple
244
244
value type as determined by
245
245
{spring-framework-api}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty]
246
- _AND_ that is not resolved by any other argument resolver is treated as an `@ModelAttribute`.
246
+ _AND_ that is not resolved by any other argument resolver is treated as an implicit `@ModelAttribute`.
247
247
248
- WARNING: When compiling to native images, implicit `@ModelAttribute` as described above does
249
- not allow proper ahead-of-time inference of related data binding reflection hints. As a consequence,
250
- it is recommended to annotate explicitly with `@ModelAttribute` method parameters for such use case
251
- with GraalVM.
248
+ WARNING: When compiling to a native image with GraalVM, the implicit `@ModelAttribute`
249
+ support described above does not allow proper ahead-of-time inference of related data
250
+ binding reflection hints. As a consequence, it is recommended to explicitly annotate
251
+ method parameters with `@ModelAttribute` for use in a GraalVM native image .
You can’t perform that action at this time.
0 commit comments