修正redis配置

This commit is contained in:
wangshilong 2025-02-06 18:10:35 +08:00
parent 389ff3372e
commit c99e56c682
2 changed files with 40 additions and 38 deletions

View File

@ -5,13 +5,14 @@ spring:
url: jdbc:mysql://${MYSQL_HOST:172.17.0.1}:${MYSQL_PORT:3306}/gas_well_watch?characterEncoding=UTF-8&useUnicode=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: ${MYSQL_USERNAME:root}
password: ${MYSQL_USERNAME:@Root123}
redis:
host: ${REDIS_HOST:172.17.0.1}
port: ${REDIS_PORT:6379}
database: ${REDIS_DATABASE:1}
rabbitmq:
host: ${RABBIT_MQ_HOST:172.17.0.1}
port: ${RABBIT_MQ_PORT:5672}
username: ${RABBIT_MQ_USERNAME:huaxia}
password: ${RABBIT_MQ_PASSWORD:huaxia@2024}
virtual-host: /gas
data:
redis:
host: ${REDIS_HOST:172.17.0.1}
port: ${REDIS_PORT:6379}
database: ${REDIS_DATABASE:1}

View File

@ -7,6 +7,7 @@ spring:
max-request-size: 200MB #指定为100MB -1无限制
profiles:
active: dev
data:
redis:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}