From 1412c2c5770392cbb4512e56be60fe5e53b3252d Mon Sep 17 00:00:00 2001 From: Kazuki Shimizu Date: Mon, 8 May 2017 00:52:22 +0900 Subject: [PATCH] Fix sample code in WebFlux chapter --- src/docs/asciidoc/web/web-flux.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/web/web-flux.adoc b/src/docs/asciidoc/web/web-flux.adoc index 4d1a2d3c97c..6970d32d53d 100644 --- a/src/docs/asciidoc/web/web-flux.adoc +++ b/src/docs/asciidoc/web/web-flux.adoc @@ -327,9 +327,10 @@ For the **functional programming model** bootstrap as follows: [source,java,indent=0] [subs="verbatim,quotes"] ---- -ApplicationContext context = new AnnotationConfigApplicationContext(); // (1) +AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(); // (1) context.registerBean(FooBean.class, () -> new FooBeanImpl()); // (2) context.registerBean(BarBean.class); // (3) +context.refresh(); HttpHandler handler = WebHttpHandlerBuilder .webHandler(RouterFunctions.toHttpHandler(...))