Fix Javadoc typos

Closes gh-22261

(cherry picked from commit 9837ec5904)
This commit is contained in:
Rossen Stoyanchev
2019-01-18 00:01:08 +01:00
committed by Juergen Hoeller
parent 7c4f1de74f
commit 657fc4c191
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ import org.springframework.context.annotation.Import;
/**
* Add this annotation to an {@code @Configuration} class to configure
* processing WebSocket requests:
* processing WebSocket requests. A typical configuration would look like this:
*
* <pre class="code">
* &#064;Configuration
@@ -49,7 +49,7 @@ import org.springframework.context.annotation.Import;
* registry.addHandler(echoWebSocketHandler(), "/echo").withSockJS();
* }
*
* &#064;Bean
* &#064;Override
* public WebSocketHandler echoWebSocketHandler() {
* return new EchoWebSocketHandler();
* }

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@ import org.springframework.context.annotation.Import;
* registry.addEndpoint("/portfolio").withSockJS();
* }
*
* &#064;Bean
* &#064;Override
* public void configureMessageBroker(MessageBrokerRegistry registry) {
* registry.enableStompBrokerRelay("/queue/", "/topic/");
* registry.setApplicationDestinationPrefixes("/app/");