|
|
@@ -0,0 +1,22 @@
|
|
|
+package com.nb.aliyun.service.distribute;
|
|
|
+
|
|
|
+import com.nb.aliyun.service.AliIotConstant;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.springframework.amqp.core.DirectExchange;
|
|
|
+import org.springframework.context.annotation.Bean;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : RabbitMqChannelConfig
|
|
|
+ * @Description :
|
|
|
+ * @Author : LF
|
|
|
+ * @Date: 2023年07月31日
|
|
|
+ */
|
|
|
+@Component
|
|
|
+@AllArgsConstructor
|
|
|
+public class MasterDistributeQueueConfig {
|
|
|
+ @Bean
|
|
|
+ DirectExchange distributeExchange() {
|
|
|
+ return new DirectExchange(AliIotConstant.Exchange,true,false);
|
|
|
+ }
|
|
|
+}
|