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