提交 8848e6ab 编写于 作者: K Kyle Carter 提交者: Stephane Nicoll

Fix usage of deprecated functionality in docs

Closes gh-1934
上级 a8fbac84
......@@ -1804,7 +1804,7 @@ user and associate it with subsequent STOMP messages on the same session:
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.setInterceptors(new ChannelInterceptorAdapter() {
registration.interceptors(new ChannelInterceptor() {
@Override
public Message<?> preSend(Message<?> message, MessageChannel channel) {
StompHeaderAccessor accessor =
......@@ -2063,7 +2063,7 @@ For example to intercept inbound messages from clients:
@Override
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.setInterceptors(new MyChannelInterceptor());
registration.interceptors(new MyChannelInterceptor());
}
}
----
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册