From f5e2dbaa6b76d01b9e6b70b31dac6de3b32663cc Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Tue, 26 May 2020 18:52:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=ADredis=E9=85=8D=E7=BD=AE=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/application-common-dev.yml | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/novel-common/src/main/resources/application-common-dev.yml b/novel-common/src/main/resources/application-common-dev.yml index 91ba215..c4e30b1 100644 --- a/novel-common/src/main/resources/application-common-dev.yml +++ b/novel-common/src/main/resources/application-common-dev.yml @@ -3,7 +3,25 @@ spring: include: [common] main: allow-bean-definition-overriding: true - + #Redis服务器IP + redis: + host: 127.0.0.1 + #Redis服务器连接端口 + port: 6379 + #Redis服务器连接密码 + password: test + jedis: + pool: + #连接池最大连接数(使用负值表示没有限制) + max-active: 8 + #连接池最大阻塞等待时间(使用负值表示没有限制) + max-wait: 1 + #连接池最大阻塞等待时间(使用负值表示没有限制) + max-idle: 8 + #连接池中的最小空闲连接 + min-idle: 0 + #连接超时时间(毫秒) + timeout: 30000 # datasource: # url: jdbc:mysql://127.0.0.1:3306/novel_plus?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai # username: root @@ -52,25 +70,7 @@ sharding: algorithm-expression: book_content${index_id % 10} - #Redis服务器IP - redis: - host: 127.0.0.1 - #Redis服务器连接端口 - port: 6379 - #Redis服务器连接密码 - password: test - jedis: - pool: - #连接池最大连接数(使用负值表示没有限制) - max-active: 8 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-wait: 1 - #连接池最大阻塞等待时间(使用负值表示没有限制) - max-idle: 8 - #连接池中的最小空闲连接 - min-idle: 0 - #连接超时时间(毫秒) - timeout: 30000 +