From 7f616c216bf59d69a9b98161be94fed4097b955e Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Fri, 12 May 2017 20:45:27 +0300 Subject: [PATCH] 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. --- src/docs/asciidoc/web/web-flux.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/docs/asciidoc/web/web-flux.adoc b/src/docs/asciidoc/web/web-flux.adoc index 7e10afa9ee7..4d1a2d3c97c 100644 --- a/src/docs/asciidoc/web/web-flux.adoc +++ b/src/docs/asciidoc/web/web-flux.adoc @@ -238,6 +238,7 @@ public HandlerMapping webSocketMapping() { map.put("/bar", new BarWebSocketHandler()); SimpleUrlHandlerMapping mapping = new SimpleUrlHandlerMapping(); + mapping.setOrder(10); mapping.setUrlMap(map); return mapping; }