Issue: SPR-16014
master
Sebastien Deleuze 7 years ago
parent efce7902c4
commit fbb428f032
  1. 3
      src/docs/asciidoc/kotlin.adoc

@ -220,7 +220,8 @@ fun beans() = beans {
} }
---- ----
In this example, `ref<Routes>()` is a shortcut for `applicationContext.getBean(Routes::class.java)`. In this example, `bean<Routes>()` is using autowiring by constructor and `ref<Routes>()`
is a shortcut for `applicationContext.getBean(Routes::class.java)`.
This `beans()` function can then be used to register beans on the application context. This `beans()` function can then be used to register beans on the application context.

Loading…
Cancel
Save