gasWellWatch/src/main/resources/application.yaml

71 lines
2.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
application:
name: gasWell-watch
servlet:
multipart:
max-file-size: 100MB #-1 无限制
max-request-size: 200MB #指定为100MB -1无限制
profiles:
active: dev
data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
# Redis索引默认为 0
database: ${REDIS_DATABASE:0}
# Redis 服务器连接密码(默认为空)
password: ${REDIS_PASSWORD:}
timeout: 5000
rabbitmq:
host: ${RABBIT_MQ_HOST:localhost}
port: ${RABBIT_MQ_PORT:5672}
username: ${RABBIT_MQ_USERNAME:ModbusAdmin}
password: ${RABBIT_MQ_PASSWORD:ModbusPassword}
virtual-host: /
# public confirms机制用于解决生产者与Rabbitmq服务器之间消息可靠传输它在消息服务器持久化消息后通知消息生产者发送成功。
# 发送确认
publisher-confirms: false
listener:
simple:
# manual手动ack需要在业务代码结束后调用api发送ack。
# auto自动ack由spring监测listener代码是否出现异常没有异常则返回ack抛出异常则返回nack
# none关闭ackMQ假定消费者获取消息后会成功处理因此消息投递后立即被删除
acknowledge-mode: none
concurrency: 10
retry:
# 开启消费者失败重试
enabled: false
# 初始的失败等待时长为1秒
initial-interval: 1000ms
# 失败的等待时长倍数,下次等待时长 = multiplier * initial-interval
multiplier: 1
# 最大重试次数
max-attempts: 3
# true无状态false有状态。如果业务中包含事务这里改为false
stateless: false
server:
port: 8090
sa-token:
# token 名称同时也是cookie名称
token-name: token
# token 有效期(单位:秒) 默认30天-1 代表永久有效
timeout: 2592000
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: -1
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: false
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token
is-share: false
# token 风格默认可取值uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: uuid
# 是否输出操作日志
is-log: true
# 关闭cookie
is-read-cookie: false
snowflake:
worker: 0
data-center: 1