🎉 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>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--elasticsearch-->
|
<!--elasticsearch-->
|
||||||
<!-- <dependency>-->
|
<!-- <dependency>-->
|
||||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||||
@ -35,10 +34,15 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.kafka</groupId>
|
||||||
|
<artifactId>spring-kafka</artifactId>
|
||||||
|
</dependency>
|
||||||
<!--mysql-->
|
<!--mysql-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.mysql</groupId>
|
<groupId>com.mysql</groupId>
|
||||||
<artifactId>mysql-connector-j</artifactId>
|
<artifactId>mysql-connector-j</artifactId>
|
||||||
|
<version>8.2.0</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--mybatis-plus-->
|
<!--mybatis-plus-->
|
||||||
|
@ -4,12 +4,14 @@ server:
|
|||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: darkness
|
name: darkness
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://localhost:3306/darkness?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
url: jdbc:mysql://192.168.217.100:3306/darkness?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||||
username: darkness
|
username: root
|
||||||
password: darkness
|
password: 12345678
|
||||||
type: com.zaxxer.hikari.HikariDataSource
|
type: com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
# elasticsearch:
|
# elasticsearch:
|
||||||
# uris: localhost:9200
|
# uris: localhost:9200
|
||||||
# cluster-name: elasticsearch
|
# cluster-name: elasticsearch
|
||||||
@ -27,3 +29,13 @@ spring:
|
|||||||
# zen:
|
# zen:
|
||||||
# ping.unicast.hosts: localhost:9300
|
# 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