发送消息时注入一个KafkaTemplate,接收消息时添加一个 @KafkaListener 注解即可。 Spring-kafka-test嵌入式Kafka Server. 不过上面的代码能够启动成功, ...
確定! 回上一頁