Skip to content

Commit e8ab9da

Browse files
committed
Update IP
1 parent 6014073 commit e8ab9da

File tree

7 files changed

+17
-122
lines changed

7 files changed

+17
-122
lines changed

database.yaml

Lines changed: 0 additions & 72 deletions
This file was deleted.

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@
112112

113113

114114

115+
<dependency>
116+
<groupId>net.logstash.logback</groupId>
117+
<artifactId>logstash-logback-encoder</artifactId>
118+
<version>7.0.1</version>
119+
</dependency>
120+
121+
122+
123+
124+
125+
115126
</dependencies>
116127

117128

resources.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/main/java/com/programming/videoService/config/KafkaConsumerConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class KafkaConsumerConfig {
1919
@Bean
2020
public Map<String, Object> consumerConfigs() {
2121
Map<String, Object> props = new HashMap<>();
22-
props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
22+
props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "192.168.120.131:30392");
2323
props.put(ConsumerConfig.GROUP_ID_CONFIG, "video-genres-group"); // Tên group ID
2424
props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);
2525
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);

src/main/java/com/programming/videoService/config/KafkaProducerConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class KafkaProducerConfig {
1616
@Bean
1717
public Map<String, Object> producerConfigs() {
1818
Map<String, Object> props = new HashMap<>();
19-
props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
19+
props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "192.168.120.131:30392");
2020
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
2121
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
2222
return props;

src/main/java/com/programming/videoService/service/VideoService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ public class VideoService {
8787
public VideoService() {
8888
// Kafka Producer Configuration
8989
Properties producerProps = new Properties();
90-
producerProps.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
90+
producerProps.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "192.168.120.131:30392");
9191
producerProps.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName());
9292
producerProps.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName());
9393
this.kafkaProducer = new KafkaProducer<>(producerProps);
9494

9595
// Kafka Consumer Configuration
9696
Properties consumerProps = new Properties();
97-
consumerProps.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
97+
consumerProps.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "192.169.120.131:30392");
9898
consumerProps.put(ConsumerConfig.GROUP_ID_CONFIG, "video-genres-group");
9999
consumerProps.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
100100
consumerProps.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());

src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ spring.mail.properties.mail.smtp.starttls.enable=true
2424

2525

2626
# Redis
27-
spring.redis.host=localhost
27+
spring.redis.host=10.40.0.5
2828
spring.redis.port=6379
29-
spring.redis.password=
29+
spring.redis.password=123456

0 commit comments

Comments
 (0)