@@ -2262,23 +2262,18 @@ supported for all return values.
2262
2262
| Write to the response `OutputStream` asynchronously. Also supported as the body of a
2263
2263
`ResponseEntity`. See <<mvc-ann-async>> and <<mvc-ann-async-http-streaming>>.
2264
2264
2265
- | Reactive types -- Reactor, RxJava, or others through `ReactiveAdapterRegistry`
2266
- | Alternative to `DeferredResult` with multi-value streams (for example, `Flux`, `Observable`)
2267
- collected to a `List`.
2268
-
2269
- For streaming scenarios (for example, `text/event-stream`, `application/json+stream`),
2270
- `SseEmitter` and `ResponseBodyEmitter` are used instead, where `ServletOutputStream`
2271
- blocking I/O is performed on a Spring MVC-managed thread and back pressure is applied
2272
- against the completion of each write.
2273
-
2274
- See <<mvc-ann-async>> and <<mvc-ann-async-reactive-types>>.
2275
-
2276
- | Any other return value
2277
- | Any return value that does not match any of the earlier values in this table and that
2278
- is a `String` or `void` is treated as a view name (default view name selection through
2279
- `RequestToViewNameTranslator` applies), provided it is not a simple type, as determined by
2280
- {api-spring-framework}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty].
2281
- Values that are simple types remain unresolved.
2265
+ | Reactor and other reactive types registered via `ReactiveAdapterRegistry`
2266
+ | A single value type, e.g. `Mono`, is comparable to returning `DeferredResult`.
2267
+ A multi-value type, e.g. `Flux`, may be treated as a stream depending on the requested
2268
+ media type, e.g. "text/event-stream", "application/json+stream", or otherwise is
2269
+ collected to a List and rendered as a single value. See <<mvc-ann-async>> and
2270
+ <<mvc-ann-async-reactive-types>>.
2271
+
2272
+ | Other return values
2273
+ | If a return value remains unresolved in any other way, it is treated as a model
2274
+ attribute, unless it is a simple type as determined by
2275
+ {api-spring-framework}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty],
2276
+ in which case it remains unresolved.
2282
2277
|===
2283
2278
2284
2279
0 commit comments