Skip to content

Commit fdcea58

Browse files
committed
Polishing
1 parent ef4ffa0 commit fdcea58

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

framework-docs/modules/ROOT/pages/web/webflux/controller/ann-methods/modelattrib-method-args.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ controller method xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation]
198198
TIP: Using `@ModelAttribute` is optional. By default, any argument that is not a simple
199199
value type as determined by
200200
{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`.
202202

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.

framework-docs/modules/ROOT/pages/web/webmvc/mvc-controller/ann-methods/modelattrib-method-args.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].
243243
TIP: Using `@ModelAttribute` is optional. By default, any parameter that is not a simple
244244
value type as determined by
245245
{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`.
247247

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.

0 commit comments

Comments
 (0)