주문 취소 이벤트 발생
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user