Commit 2bc0bea2 authored by macro's avatar macro
Browse files

消息队列配置优化

parent c52fd274
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment