parent
884fc40c3c
commit
44e8cdcd89
|
@ -256,9 +256,10 @@ This `beans()` function can then be used to register beans on your application c
|
||||||
|
|
||||||
[source,kotlin]
|
[source,kotlin]
|
||||||
----
|
----
|
||||||
val context = GenericApplicationContext()
|
val context = GenericApplicationContext().apply {
|
||||||
beans().invoke(context)
|
beans().invoke(this)
|
||||||
context.refresh()
|
refresh()
|
||||||
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
|
|
Loading…
Reference in New Issue