SpringBoot--MQ不生效

Cannot resolve configuration property 'rabbitmq.username'

rabbitmq:
username: admin
password: admin
virtual-host: test_data
listener:
simple:
# 表示消费者消费成功消息以后需要手工的进行签收(ack确认),默认为 auto
acknowledge-mode: manual
prefetch: 1 #每次从队列中取一个,轮询分发,默认是公平分发
retry:
max-attempts: 5 # 重试次数
enabled: true # 开启重试 192.128.121.1:5672,192.128.1.16:5672,192.128.1.18:5672
addresses: 196.128.0.12:5672
trajectory:
enabled: true
queue:

测试 yml文件生效

 

 








posted on 2023-06-17 17:13  daofree  阅读(134)  评论(0编辑  收藏  举报