🎉 add kafka config
This commit is contained in:
parent
4bdda08752
commit
4f53890a10
6
pom.xml
6
pom.xml
@ -21,7 +21,6 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--elasticsearch-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
@ -35,10 +34,15 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.kafka</groupId>
|
||||
<artifactId>spring-kafka</artifactId>
|
||||
</dependency>
|
||||
<!--mysql-->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<version>8.2.0</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!--mybatis-plus-->
|
||||
|
@ -4,12 +4,14 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: darkness
|
||||
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/darkness?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: darkness
|
||||
password: darkness
|
||||
url: jdbc:mysql://192.168.217.100:3306/darkness?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: 12345678
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
|
||||
# elasticsearch:
|
||||
# uris: localhost:9200
|
||||
# cluster-name: elasticsearch
|
||||
@ -27,3 +29,13 @@ spring:
|
||||
# zen:
|
||||
# ping.unicast.hosts: localhost:9300
|
||||
|
||||
kafka:
|
||||
bootstrap-servers: 192.168.217.100:9092
|
||||
consumer:
|
||||
auto-offset-reset: earliest
|
||||
group-id: darkness-group
|
||||
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
||||
value-deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer
|
||||
producer:
|
||||
key-serializer: org.apache.kafka.common.serialization.StringSerializer
|
||||
value-serializer: org.apache.kafka.common.serialization.StringSerializer
|
Loading…
x
Reference in New Issue
Block a user