From 236effbc408cb1e16132f30663bd10f8fa6c7432 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 30 Nov 2021 14:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.yml | 12 ++++++++++++ src/main/resources/application-test.yml | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 76e882c..f47a844 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -54,6 +54,18 @@ spring: data: mongodb: uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity + redis: + database: 6 + host: 192.168.0.156 + port: 6379 + password: 666 + timeout: 3000ms + jedis: + pool: + max-active: 8 + max-wait: 1ms + max-idle: 8 + min-idle: 0 mybatis: config-location: classpath:mybatis/mybatis-config.xml diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index cac5981..b7aa030 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -56,11 +56,11 @@ spring: mongodb: uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity redis: - database: 0 + database: 6 host: 127.0.0.1 port: 6379 password: 666 - timeout: 0 + timeout: 3000ms jedis: pool: max-active: 8