[fix]修改bug
This commit is contained in:
parent
c21d61f4f0
commit
983375f2c7
@ -14,9 +14,22 @@ spring.boot.admin.client:
|
||||
--- # 禁用RabbitMQ自动配置
|
||||
spring:
|
||||
rabbitmq:
|
||||
enabled: false
|
||||
autoconfigure:
|
||||
exclude: org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
|
||||
enabled: true
|
||||
host: 192.168.1.65 # RabbitMQ服务器地址,本地为 localhost
|
||||
port: 5672 # 端口,默认 5672
|
||||
username: wzj # 用户名,默认 guest
|
||||
password: wzj123456 # 密码,默认 guest
|
||||
virtual-host: /wzj # 虚拟主机,默认 /
|
||||
# 可选:生产者确认机制,确保消息正确发送到Broker
|
||||
publisher-confirm-type: correlated
|
||||
# 可选:开启生产者回退机制,确保消息正确路由到队列
|
||||
publisher-returns: true
|
||||
template:
|
||||
mandatory: true
|
||||
listener:
|
||||
simple:
|
||||
acknowledge-mode: manual # 手动ACK确认,通常更可靠。如需自动,改为 auto
|
||||
prefetch: 1 # 每次预取一条消息,处理完再取下一条,避免消息积压
|
||||
|
||||
--- # snail-job 配置
|
||||
snail-job:
|
||||
|
Loading…
x
Reference in New Issue
Block a user