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: