集成kafka至springboot
发布时间
阅读量:
阅读量
- Pom.xml
<dependencies >
<dependency >
<groupId >org.springframework.boot</groupId >
<artifactId >spring-boot-starter-web</artifactId >
</dependency >
<dependency >
<groupId >org.springframework.kafka</groupId >
<artifactId >spring-kafka</artifactId >
<version >2.2.3.RELEASE</version >
</dependency >
</dependencies >
- 配置文件
#kafka
# 指定kafka代理服务器地址(可多个)
spring.kafka.bootstrap-servers = xxx
# 设置消息读取策略
$spring.kafka.c
全部评论 (0)
还没有任何评论哟~
