消息队列配置优化

This commit is contained in:
macro
2022-06-22 09:22:04 +08:00
parent c52fd27436
commit 2bc0bea2ea

View File

@@ -17,7 +17,7 @@ public class RabbitMqConfig {
*/
@Bean
DirectExchange orderDirect() {
return (DirectExchange) ExchangeBuilder
return ExchangeBuilder
.directExchange(QueueEnum.QUEUE_ORDER_CANCEL.getExchange())
.durable(true)
.build();
@@ -28,7 +28,7 @@ public class RabbitMqConfig {
*/
@Bean
DirectExchange orderTtlDirect() {
return (DirectExchange) ExchangeBuilder
return ExchangeBuilder
.directExchange(QueueEnum.QUEUE_TTL_ORDER_CANCEL.getExchange())
.durable(true)
.build();