Polishing

Issue: SPR-15659
This commit is contained in:
Sebastien Deleuze 2017-08-30 17:28:03 +02:00
parent 884fc40c3c
commit 44e8cdcd89
1 changed files with 4 additions and 3 deletions

View File

@ -256,9 +256,10 @@ This `beans()` function can then be used to register beans on your application c
[source,kotlin]
----
val context = GenericApplicationContext()
beans().invoke(context)
context.refresh()
val context = GenericApplicationContext().apply {
beans().invoke(this)
refresh()
}
----
[NOTE]