From efc94295a85f4383b940944ed7bbf384e90a1c35 Mon Sep 17 00:00:00 2001 From: shinmj Date: Mon, 1 Nov 2021 15:12:17 +0900 Subject: [PATCH] =?UTF-8?q?spring.cloud.stream.function.definition=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=EC=8B=9C=20config=20bus=20=EC=A0=84?= =?UTF-8?q?=EB=8B=AC=ED=95=98=EA=B8=B0=20=EC=9C=84=ED=95=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/portal-service.yml | 6 +++++- config/reserve-item-service.yml | 6 +++++- config/reserve-request-service.yml | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/config/portal-service.yml b/config/portal-service.yml index d031f33..eee05d8 100644 --- a/config/portal-service.yml +++ b/config/portal-service.yml @@ -8,10 +8,14 @@ spring: password: msaportal driver-class-name: com.mysql.cj.jdbc.Driver cloud: + bus: + destination: springCloudBus stream: function: - definition: attachmentEntity # 첨부파일 entity 정보 업데이트 하기 위한 이벤트에 대한 consumer function + definition: attachmentEntity;busConsumer # 첨부파일 entity 정보 업데이트 하기 위한 이벤트에 대한 consumer function & springcloudbus consumer function bindings: + busConsumer-in-0: + destination: ${spring.cloud.bus.destination} attachmentEntity-in-0: # 첨부파일 entity 정보 업데이트 하기 위한 이벤트 destination: attachment-entity.topic # queue name group: attachment diff --git a/config/reserve-item-service.yml b/config/reserve-item-service.yml index e2c3bb1..283cbc6 100644 --- a/config/reserve-item-service.yml +++ b/config/reserve-item-service.yml @@ -4,10 +4,14 @@ spring: username: msaportal password: msaportal cloud: + bus: + destination: springCloudBus stream: function: - definition: reserveRequest # 예약 요청후 물품 재고업데이트 이벤트에 대한 consumer function + definition: reserveRequest;busConsumer # 예약 요청후 물품 재고업데이트 이벤트에 대한 consumer function & springcloudbus consumer function bindings: + busConsumer-in-0: + destination: ${spring.cloud.bus.destination} reserveRequest-in-0: # 예약 요청후 물품 재고업데이트 이벤트에 대한 consumer binding destination: reserve-request.topic # queue name group: reserved diff --git a/config/reserve-request-service.yml b/config/reserve-request-service.yml index a3bc2d5..b62240e 100644 --- a/config/reserve-request-service.yml +++ b/config/reserve-request-service.yml @@ -4,10 +4,14 @@ spring: username: msaportal password: msaportal cloud: + bus: + destination: springCloudBus stream: function: - definition: inventoryUpdated # 예약 요청후 물품 재고업데이트 결과에 이벤트에 대한 consumer function + definition: inventoryUpdated;busConsumer # 예약 요청후 물품 재고업데이트 결과에 이벤트에 대한 consumer function & springcloudbus consumer function bindings: + busConsumer-in-0: + destination: ${spring.cloud.bus.destination} reserveRequest-out-0: # 예약 요청후 물품 재고업데이트 이벤트에 대한 supplier binding destination: reserve-request.topic # queue name group: reserved