We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6314969 commit 5832277Copy full SHA for 5832277
src/main/kotlin/functional/Beans.kt
@@ -8,7 +8,7 @@ import org.springframework.context.support.beans
8
import org.springframework.web.cors.CorsConfiguration
9
import org.springframework.web.cors.reactive.CorsWebFilter
10
11
-fun beans() = beans {
+val beans = beans {
12
bean<UserHandler>()
13
bean {
14
Routes(ref(), ref()).router()
@@ -21,6 +21,6 @@ fun beans() = beans {
21
// See application.properties context.initializer.classes entry
22
class BeansInitializer : ApplicationContextInitializer<GenericApplicationContext> {
23
override fun initialize(context: GenericApplicationContext) =
24
- beans().initialize(context)
+ beans.initialize(context)
25
26
}
0 commit comments