Commit b796a439 by zhouhaibao

[+]sop增加消费的rabbitmq

1 parent 79c17f64
...@@ -50,6 +50,12 @@ ...@@ -50,6 +50,12 @@
<artifactId>rpc-scrm-proxy-api</artifactId> <artifactId>rpc-scrm-proxy-api</artifactId>
<version>3.7.0-SNAPSHOT</version> <version>3.7.0-SNAPSHOT</version>
</dependency> </dependency>
<!--rabbitmq-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
package cn.com.glsx.execute.modules.rabbitmq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
@Component
@Slf4j
@RabbitListener(queues = "wxwork-worktool-queue")//监听的队列名称
public class DirectReceiver {
@RabbitHandler
public void process(String testMessage) {
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!