Last active
February 12, 2022 16:44
-
-
Save mjedynak/2002c0345ce873a64f6455cd77401d0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
class AppConfig { | |
@Value(value = "\${kafka.bootstrapAddress}") | |
lateinit var bootstrapAddress: String | |
@Bean | |
fun adminClient(): AdminClient { | |
return AdminClient.create(mapOf( | |
AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG to bootstrapAddress) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment