Browse Source

Fix sample code in WebFlux chapter

pull/1439/merge
Kazuki Shimizu 8 years ago committed by Rossen Stoyanchev
parent
commit
1412c2c577
  1. 3
      src/docs/asciidoc/web/web-flux.adoc

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

@ -327,9 +327,10 @@ For the **functional programming model** bootstrap as follows: @@ -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(...))

Loading…
Cancel
Save