From 9a3a8a9dae41b568125da72fb851f1b18096915d Mon Sep 17 00:00:00 2001 From: hiparker Date: Thu, 15 Apr 2021 10:12:38 +0800 Subject: [PATCH] =?UTF-8?q?Redisson=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opsli-starter/src/main/resources/application-beta.yaml | 6 +++--- opsli-starter/src/main/resources/application-dev.yaml | 8 ++++---- opsli-starter/src/main/resources/application-release.yaml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/opsli-starter/src/main/resources/application-beta.yaml b/opsli-starter/src/main/resources/application-beta.yaml index 97a14df..d069d51 100644 --- a/opsli-starter/src/main/resources/application-beta.yaml +++ b/opsli-starter/src/main/resources/application-beta.yaml @@ -50,9 +50,9 @@ redisson: server: enable: true type: standalone - address: "127.0.0.1:6379" - password: 123456 - database: 0 + address: "${spring.redis.host}:${spring.redis.port}" + password: "${spring.redis.password}" + database: ${spring.redis.database} # knife4j 文档 配置 knife4j: diff --git a/opsli-starter/src/main/resources/application-dev.yaml b/opsli-starter/src/main/resources/application-dev.yaml index ecc6965..2492bde 100644 --- a/opsli-starter/src/main/resources/application-dev.yaml +++ b/opsli-starter/src/main/resources/application-dev.yaml @@ -8,7 +8,7 @@ spring: #redis 配置 redis: database: 0 - host: 127.0.0.1 + host: 10.0.0.254 password: '123456' port: 6379 @@ -50,9 +50,9 @@ redisson: server: enable: true type: standalone - address: "127.0.0.1:6379" - password: 123456 - database: 0 + address: "${spring.redis.host}:${spring.redis.port}" + password: "${spring.redis.password}" + database: ${spring.redis.database} #mybatis-plus 插件 mybatis-plus: diff --git a/opsli-starter/src/main/resources/application-release.yaml b/opsli-starter/src/main/resources/application-release.yaml index edf64df..9d9866c 100644 --- a/opsli-starter/src/main/resources/application-release.yaml +++ b/opsli-starter/src/main/resources/application-release.yaml @@ -50,9 +50,9 @@ redisson: server: enable: true type: standalone - address: "127.0.0.1:6379" - password: 123456 - database: 0 + address: "${spring.redis.host}:${spring.redis.port}" + password: "${spring.redis.password}" + database: ${spring.redis.database} # knife4j 文档 配置 knife4j: