We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ffe8d commit 361d68fCopy full SHA for 361d68f
src/main/kotlin/com/izeye/helloworld/springbootkotlin/SampleConfiguration.kt
@@ -0,0 +1,25 @@
1
+package com.izeye.helloworld.springbootkotlin
2
+
3
+import org.springframework.context.annotation.Bean
4
+import org.springframework.context.annotation.Configuration
5
6
+/**
7
+ * Sample [Configuration].
8
+ *
9
+ * @author Johnny Lim
10
+ */
11
+@Configuration
12
+class SampleConfiguration {
13
14
+ // This function name will be translated to 'sampleBean$hello_spring_boot_kotlin'.
15
+ @Bean
16
+ internal fun sampleBean() = SampleBean()
17
18
+}
19
20
21
+ * Sample bean.
22
23
24
25
+class SampleBean
0 commit comments