Skip to content

Commit

Permalink
RabbitMQ回退消息
Browse files Browse the repository at this point in the history
  • Loading branch information
oddfar committed Nov 20, 2022
1 parent 975f021 commit e601da6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ docs/.vuepress/dist

# 百度链接推送
urls.txt
# mac
.DS_Store
Binary file modified docs/.DS_Store
Binary file not shown.
Binary file modified docs/03.数据库/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public void init() {
rabbitTemplate.setMandatory(true);
//设置回退消息交给谁处理
rabbitTemplate.setReturnsCallback(myCallBack);
//RabbitMQ版本低的是 rabbitTemplate.setReturnCallback(myCallBack);

}
```
Expand Down

0 comments on commit e601da6

Please sign in to comment.