logging:
|
path: ./log/
|
|
upload:
|
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
url: D:/ycl/file
|
|
spring:
|
datasource:
|
url: jdbc:mysql://42.193.1.25:3306/xzs?useSSL=true&useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&allowMultiQueries=true
|
username: root
|
password: 321$YcYl@1970!
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
rabbitmq:
|
host: 101.35.247.188
|
username: ycl
|
password: ycl@2024
|
virtual-host: jxkg
|
port: 5672
|
publisher-confirms: true # 开启生产者发送确认
|
publisher-returns: true # 开启生产者发送失败退回
|
listener:
|
simple:
|
default-requeue-rejected: false # 关闭默认拒绝消费时的重新入队,我们使用本地重试消费
|
# 确认模式:手动,开启了就必须在代码中手动确认,否则消息会一直重复消费。
|
# 开启了重试就应该设置为自动确认,因为手动确认需要捕获异常,而重试就是发生异常才会重试
|
acknowledge-mode: manual
|
retry:
|
enabled: true # 消费时出现异常进行重试消费,注意不能被捕获,否则无法重试
|
max-attempts: 3 # 最大重试次数
|
initial-interval: 3000 # 初次重试等待间隔
|
multiplier: 2 # 重试失败后,下次等待时间增加多少倍。
|