kafka学习笔记(四)spring boot整合kafka0.10.0.1(使用配置类)

配置类,配置属性,以及实现收发消息的实现类都与笔记(三)的代码相同,不同的是引入的kafka的依赖,

继承kafka0.10.0.1只需要引入一个jar包,如下:

          <!-- kafka -->
			<dependency>
			    <groupId>org.springframework.kafka</groupId>
			    <artifactId>spring-kafka</artifactId>
				<version>1.2.2.RELEASE</version>
			</dependency>
          <!--kafka  -->

猜你喜欢

转载自blog.csdn.net/qq_34246546/article/details/80880850