Update WebSocket docs on proxying @Controller

Issue: SPR-13384
This commit is contained in:
Rossen Stoyanchev
2015-08-25 22:14:36 -04:00
parent bdf735125f
commit 4ecb3d4f3f
3 changed files with 23 additions and 0 deletions

View File

@@ -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

View File

@@ -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