Fix sample code in WebFlux chapter

This commit is contained in:
Kazuki Shimizu
2017-05-31 22:05:38 -04:00
committed by Rossen Stoyanchev
parent 94618c4f37
commit 1412c2c577
+2 -1
View File
@@ -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(...))