Browse Source

增加dmp-rwd服务Channel:exchange-bdtp-digital自动创建配置

liuyang 3 years ago
parent
commit
e2b3420d26

+ 6 - 0
dmp-business/dmp-rwd/src/main/java/com/persagy/dmp/rwd/digital/config/DigitalRabbitConfig.java

@@ -1,5 +1,6 @@
 package com.persagy.dmp.rwd.digital.config;
 
+import com.persagy.dmp.basic.constant.DigitalMessageConstant;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.amqp.core.Binding;
 import org.springframework.amqp.core.BindingBuilder;
@@ -38,4 +39,9 @@ public class DigitalRabbitConfig {
     public Binding projectBinding() {
         return BindingBuilder.bind(projectQueue()).to(projectExchange()).with(PROJECT_ROUTING_KEY);
     }
+
+    @Bean
+    public TopicExchange bdtpDigitalExchange() {
+        return new TopicExchange(DigitalMessageConstant.MESSAGE_EXCHANGE);
+    }
 }