주문 취소 이벤트 발생

This commit is contained in:
kimscott
2019-11-22 16:03:35 +09:00
parent 58b4ed4dc0
commit 69a721216d
2 changed files with 8 additions and 1 deletions

View File

@@ -21,7 +21,6 @@ public class ProductService {
@StreamListener(KafkaProcessor.INPUT) @StreamListener(KafkaProcessor.INPUT)
public void onOrderPlaced(@Payload String message) { public void onOrderPlaced(@Payload String message) {
System.out.println("##### listener : " + message); System.out.println("##### listener : " + message);
ObjectMapper objectMapper = new ObjectMapper(); ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

View File

@@ -13,6 +13,14 @@ spring:
cloud: cloud:
stream: stream:
kafka: kafka:
# bindings:
# event-in:
# consumer:
# enableDlq: true
# dlqName: JobError
# autoCommitOnError: true
# autoCommitOffset: true
# maxAttempts: 1
binder: binder:
brokers: localhost:9092 brokers: localhost:9092
streams: streams: