diff --git a/src/docs/asciidoc/kotlin.adoc b/src/docs/asciidoc/kotlin.adoc index cfd04ce57a..f9035e41f7 100644 --- a/src/docs/asciidoc/kotlin.adoc +++ b/src/docs/asciidoc/kotlin.adoc @@ -227,7 +227,7 @@ This `beans()` function can then be used to register beans on the application co [source,kotlin] ---- val context = GenericApplicationContext().apply { - beans().invoke(this) + beans().initialize(this) refresh() } ----