Browse Source

Specify the HandlerMapping#order in the websocket example

The order value has to be specified for the HandlerMapping
so that it will be ordered before the one that serves the static resource.
pull/1425/head
Violeta Georgieva 8 years ago
parent
commit
7f616c216b
  1. 1
      src/docs/asciidoc/web/web-flux.adoc

1
src/docs/asciidoc/web/web-flux.adoc

@ -238,6 +238,7 @@ public HandlerMapping webSocketMapping() { @@ -238,6 +238,7 @@ public HandlerMapping webSocketMapping() {
map.put("/bar", new BarWebSocketHandler());
SimpleUrlHandlerMapping mapping = new SimpleUrlHandlerMapping();
mapping.setOrder(10);
mapping.setUrlMap(map);
return mapping;
}

Loading…
Cancel
Save