Deprecate SockJsServiceRegistration#setSupressCors

SockJsServiceRegistration#setSupressCors name contains a typo. It is
now deprecated in favor of a correctly spelled method, setSuppressCors.

See gh-28853
This commit is contained in:
Marc Wrobel
2022-07-21 23:54:38 +02:00
committed by Stephane Nicoll
parent f7c32d3a0b
commit 1cc36e5be9
2 changed files with 14 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ public class WebMvcStompWebSocketEndpointRegistrationTests {
WebMvcStompWebSocketEndpointRegistration registration =
new WebMvcStompWebSocketEndpointRegistration(new String[] {"/foo"}, this.handler, this.scheduler);
registration.withSockJS().setSupressCors(true);
registration.withSockJS().setSuppressCors(true);
MultiValueMap<HttpRequestHandler, String> mappings = registration.getMappings();
assertThat(mappings.size()).isEqualTo(1);