1.增加库存记录mq处理

This commit is contained in:
2024-08-16 13:38:52 +08:00
parent d32f9705a0
commit b8a60a1549
7 changed files with 142 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ public class RabbitConfig {
public static final String EXCHANGE_STOCK_RECORD = "exchange.stock.record";
public static final String ROUTING_STOCK_RECORD_SALE = "routing.stock.record.sale";
public static final String QUEUE_STOCK_RECORD = "queue.stock.record";
@Bean
Queue stockRecordSaleQueue() {
return new Queue(QUEUE_STOCK_RECORD_SALE);