From 8369e9ef1bb5b11f34fa6ee5204e2b14848ae7ba Mon Sep 17 00:00:00 2001 From: zwzw1219 Date: Thu, 24 May 2018 08:53:21 +0800 Subject: [PATCH] =?UTF-8?q?!9=20redis=E8=BF=9E=E6=8E=A5=E6=B1=A0=20Merge?= =?UTF-8?q?=20pull=20request=20!9=20from=20zwzw1219/1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 ++++++ src/main/resources/application.yml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index 8e0f53c..22eca3a 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ 3.17 0.9.0 1.3.2 + 2.5.0 @@ -134,6 +135,11 @@ jjwt ${jwt.version} + + org.apache.commons + commons-pool2 + ${commons-pool2.version} + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 64a8e8e..431caeb 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -32,6 +32,13 @@ spring: redis: host: localhost port: 6379 + timeout: 3000 + lettuce: + pool: + min-idle: 0 + max-idle: 8 + max-active: 8 + max-wait: -1 mail: default-encoding: UTF-8 host: smtp.163.com -- Gitee