2018-07-22 Springboot集成kafka,提示Can't resolve symbol "ConsumerRecord"

1.问题:Springboot集成kafka,提示Can't resolve symbol "ConsumerRecord"  

2.场景:Springboot集成kafka

https://blog.csdn.net/saytime/article/details/79950635

pom.xml已经引入kafka对应的jar包:


	org.springframework.kafka
	spring-kafka
	2.2.0.BUILD-SNAPSHOT

但是kafka消费者中的ConsumerRecord还是报错

如图:

2018-07-22 Springboot集成kafka,提示Can't resolve symbol

3.解决方案:

pom.xml中引入kafka-clients即可:


	org.apache.kafka
	kafka-clients
	0.11.0.0

2018-07-22 Springboot集成kafka,提示Can't resolve symbol

 

 

你可能感兴趣的:(2018-07-22 Springboot集成kafka,提示Can't resolve symbol "ConsumerRecord")