Pavan Jadda
Pavan Jadda

Reputation: 4871

Autowiring issue in Spring Cloud Stream

I am trying to implement Kafka with Spring Cloud Stream. I followed instructions from the official website and developed a project. When I run the project in IntelliJ, I got following error

Parameter 0 of constructor in com.kafkastreams.service.GreetingsSender required a bean of type 'com.kafkastreams.stream.GreetingsStreams' that could not be found. 

I am not sure where I did wrong, Any help would be really appreciated. Code uploaded to GitHub for reference.

Upvotes: 1

Views: 273

Answers (1)

Jason White
Jason White

Reputation: 5813

The GreetingsConfig should be a class instead of an interface

@EnableBinding(GreetingsStreams.class)
public class GreetingsConfig
{

}

Upvotes: 1

Related Questions