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