我正在尝试使用 Spring Cloud Stream 来实现 Kafka。我按照官方website的指示进行操作并开发了project 。当我在 IntelliJ 中运行项目时,出现以下错误
Parameter 0 of constructor in com.kafkastreams.service.GreetingsSender required a bean of type 'com.kafkastreams.stream.GreetingsStreams' that could not be found.
我不确定我哪里做错了,任何帮助将非常感激。代码已上传至GitHub供引用。
最佳答案
GreetingsConfig
应该是一个类
,而不是接口(interface)
@EnableBinding(GreetingsStreams.class)
public class GreetingsConfig
{
}
关于java - Spring Cloud Stream 中的 Autowiring 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49663393/