Commit 264798b7f903247f46e5ad3020364699be3ae172

Authored by YevhenBondarenko
Committed by Andrew Shvayka
1 parent 4163c000

refactored

@@ -24,6 +24,7 @@ import org.apache.kafka.clients.consumer.ConsumerConfig; @@ -24,6 +24,7 @@ import org.apache.kafka.clients.consumer.ConsumerConfig;
24 import org.apache.kafka.clients.producer.ProducerConfig; 24 import org.apache.kafka.clients.producer.ProducerConfig;
25 import org.springframework.beans.factory.annotation.Value; 25 import org.springframework.beans.factory.annotation.Value;
26 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; 26 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
  27 +import org.springframework.boot.context.properties.ConfigurationProperties;
27 import org.springframework.stereotype.Component; 28 import org.springframework.stereotype.Component;
28 29
29 import java.util.List; 30 import java.util.List;
@@ -34,6 +35,7 @@ import java.util.Properties; @@ -34,6 +35,7 @@ import java.util.Properties;
34 */ 35 */
35 @Slf4j 36 @Slf4j
36 @ConditionalOnProperty(prefix = "queue", value = "type", havingValue = "kafka") 37 @ConditionalOnProperty(prefix = "queue", value = "type", havingValue = "kafka")
  38 +@ConfigurationProperties(prefix = "queue.kafka")
37 @Component 39 @Component
38 public class TbKafkaSettings { 40 public class TbKafkaSettings {
39 41