消息队列配置优化
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user