Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-execute-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c83ee452
authored
Sep 22, 2023
by
周杭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉监听
1 parent
2a49a335
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
platform-execute/src/main/java/cn/com/glsx/execute/modules/rabbitmq/consumer/DirectReceiver.java
platform-execute/src/main/java/cn/com/glsx/execute/modules/rabbitmq/consumer/DirectReceiver.java
View file @
c83ee45
...
...
@@ -18,7 +18,7 @@ public class DirectReceiver {
log
.
info
(
"test-queue消费-----------{}"
,
testMessage
);
}
@RabbitListener
(
queues
=
""
)
//监听的队列名称
/* @RabbitListener(queues = RabbitConfig.BURYING_POINT_QUEUE
)//监听的队列名称
public void buryingPointListener(Message message, Channel channel) throws IOException {
try {
log.info("burying_point_queue消费-----------{}",new String(message.getBody()));
...
...
@@ -28,7 +28,7 @@ public class DirectReceiver {
channel.basicNack(message.getMessageProperties().getDeliveryTag(), false, true);
System.out.println("消费失败 消息将返回给队列");
}
}
}
*/
@RabbitListener
(
queues
=
RabbitConfig
.
FANOUT_QUEUE1
)
public
void
fonoutListener1
(
String
testMessage
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment