Browse Source

Polish docs (#22645)

pull/22648/head
Johnny Lim 7 years ago committed by Sam Brannen
parent
commit
14b1a6fdcb
  1. 2
      spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractNamedValueMethodArgumentResolver.java
  2. 2
      spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/reactive/AbstractNamedValueMethodArgumentResolver.java
  3. 2
      src/docs/asciidoc/web/webmvc.adoc

2
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractNamedValueMethodArgumentResolver.java

@ -45,7 +45,7 @@ import org.springframework.util.ClassUtils; @@ -45,7 +45,7 @@ import org.springframework.util.ClassUtils;
* Expression Language {@code #{...}} expressions which will be resolved if a
* {@link ConfigurableBeanFactory} is supplied to the class constructor.
*
* <p>A {@link ConversionService} is used to to convert resolved String argument
* <p>A {@link ConversionService} is used to convert resolved String argument
* value to the expected target method parameter type.
*
* @author Rossen Stoyanchev

2
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/reactive/AbstractNamedValueMethodArgumentResolver.java

@ -45,7 +45,7 @@ import org.springframework.util.ClassUtils; @@ -45,7 +45,7 @@ import org.springframework.util.ClassUtils;
* Expression Language {@code #{...}} expressions which will be resolved if a
* {@link ConfigurableBeanFactory} is supplied to the class constructor.
*
* <p>A {@link ConversionService} is used to to convert resolved String argument
* <p>A {@link ConversionService} is used to convert resolved String argument
* value to the expected target method parameter type.
*
* @author Rossen Stoyanchev

2
src/docs/asciidoc/web/webmvc.adoc

@ -3709,7 +3709,7 @@ suitable under load. If you plan to stream with a reactive type, you should use @@ -3709,7 +3709,7 @@ suitable under load. If you plan to stream with a reactive type, you should use
The Servlet API does not provide any notification when a remote client goes away.
Therefore, while streaming to the response, whether through <<mvc-ann-async-sse, SseEmitter>>
or <<mvc-ann-async-reactive-types, reactive types>, it is important to send data periodically,
or <<mvc-ann-async-reactive-types, reactive types>>, it is important to send data periodically,
since the write fails if the client has disconnected. The send could take the form of an
empty (comment-only) SSE event or any other data that the other side would have to interpret
as a heartbeat and ignore.

Loading…
Cancel
Save