Update WebSocket docs on proxying @Controller
Issue: SPR-13384
This commit is contained in:
@@ -77,6 +77,11 @@ import org.springframework.messaging.Message;
|
||||
* have the message directed to a specific user if connected. The return value is
|
||||
* converted with a {@link org.springframework.messaging.converter.MessageConverter}.
|
||||
*
|
||||
* <p><b>NOTE:</b> When using controller interfaces (e.g. for AOP proxying),
|
||||
* make sure to consistently put <i>all</i> your mapping annotations - such as
|
||||
* {@code @MessageMapping} and {@code @SubscribeMapping} - on
|
||||
* the controller <i>interface</i> rather than on the implementation class.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.0
|
||||
* @see org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler
|
||||
|
||||
@@ -40,6 +40,11 @@ import java.lang.annotation.Target;
|
||||
* user and does not pass through the message broker. This is useful for
|
||||
* implementing a request-reply pattern.
|
||||
*
|
||||
* <p><b>NOTE:</b> When using controller interfaces (e.g. for AOP proxying),
|
||||
* make sure to consistently put <i>all</i> your mapping annotations - such as
|
||||
* {@code @MessageMapping} and {@code @SubscribeMapping} - on
|
||||
* the controller <i>interface</i> rather than on the implementation class.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.0
|
||||
* @see org.springframework.messaging.handler.annotation.MessageMapping
|
||||
|
||||
Reference in New Issue
Block a user