我正在构建一个spring-cloud应用程序并使用stream来管理我的rabbitmq优先级队列。但是application.yml中的maxPriority
设置无效。
这是我的配置:
spring:
cloud:
stream:
rabbit:
bindings:
highLevelOutput:
producer:
maxPriority: 10
highLevelInput:
consumer:
maxPriority: 10
bindings:
highLevelOutput:
destination: notification-high
contentType: application/x-java-object;type=com.txn.notification.entity.NotificationMessage
highLevelInput:
group: high
producer:
requiredGroups: high
destination: notification-high
contentType: application/x-java-object;type=com.txn.notification.entity.NotificationMessage
contentType: application/x-java-object;type=com.txn.notification.entity.NotificationMessage
我注意到在流的RabbitConsumerProperties类中没有与优先级配置相关的内容,是否可以从其他任何地方读取此属性?