From 8677b21928deb7da8311248af747d1f62607fcfe Mon Sep 17 00:00:00 2001 From: User_cyk <1020691186@qq.com> Date: Tue, 19 Dec 2023 21:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 9 +++++++++ src/main/resources/application.yml | 15 +++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d285587..0c0aae4 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,15 @@ spring-boot-starter-test test + + org.springframework.boot + spring-boot-starter-data-redis + + + commons-lang + commons-lang + 2.6 + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 52ae09b..e9f506d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,9 +2,20 @@ spring: datasource: url: jdbc:mysql://localhost:3306/love-nav username: root - password: 1611 + password: Cheng123... driver-class-name: com.mysql.cj.jdbc.Driver - + redis: + host: localhost + port: 6379 + password: Cheng123... + database: 0 + lettuce: + pool: + max-idle: 200 + max-active: 1024 + min-idle: 0 + max-wait: -1 + timeout: 10000