Spring cloud 如何利用Spring Cloud Stream动态选择卡夫卡主题

Spring cloud 如何利用Spring Cloud Stream动态选择卡夫卡主题,spring-cloud,spring-cloud-stream,Spring Cloud,Spring Cloud Stream,我有活动课 class Event { String destination; } destination属性是Kafka主题的名称 如何将邮件发布到目标 我无法将目标放在application.properties中,因为目标是在程序中设置的。由于要动态确定目标,您需要在应用程序中使用BinderAwareChannelResolver 类似于应用程序的东西。您可以选中,因为您可以动态地确定目的地,所以在应用程序中需要使用BinderAwareChannelResolver 类似于应

我有活动课

class Event {
    String destination;
}
destination属性是Kafka主题的名称

如何将邮件发布到目标


我无法将目标放在application.properties中,因为目标是在程序中设置的。

由于要动态确定目标,您需要在应用程序中使用
BinderAwareChannelResolver


类似于应用程序的东西。您可以选中

,因为您可以动态地确定目的地,所以在应用程序中需要使用
BinderAwareChannelResolver

类似于应用程序的东西。你可以查一下