Update kotlin/rabbit sample

This commit is contained in:
Oleg Zhurakousky
2021-12-07 13:19:53 +01:00
parent 26ce234c10
commit efaa4c69c2
2 changed files with 9 additions and 11 deletions

View File

@@ -7,14 +7,14 @@ import java.util.function.Function
import org.springframework.context.annotation.Configuration
@Configuration
class DemoKotlinConfiguration {
open class DemoKotlinConfiguration {
@Bean
fun uppercase(): (String) -> String {
open fun uppercase(): (String) -> String {
return { it.toUpperCase() }
}
@Bean
fun javaFunction(): Function<String, String> {
open fun javaFunction(): Function<String, String> {
return Function { x -> x }
}
}