From 69eef85a78933f13c71d27d32b80008892781024 Mon Sep 17 00:00:00 2001 From: 79493 <794930212@qq.com> Date: Tue, 18 Oct 2022 11:43:48 +0800 Subject: [PATCH] =?UTF-8?q?redis=E6=93=8D=E4=BD=9Capi=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/inventory-gov/src/main/resources/application-dev.yml b/inventory-gov/src/main/resources/application-dev.yml index 5dee1d0..2dcb6f4 100644 --- a/inventory-gov/src/main/resources/application-dev.yml +++ b/inventory-gov/src/main/resources/application-dev.yml @@ -7,6 +7,21 @@ spring: enabled: true max-file-size: 50MB max-request-size: 100MB + redis: + host: 42.193.40.239 + Auth: redis@rzyc123456 + # 进入哨兵项目-这个端口就不用了,除非是单体 + # port: 6379 + sentinel: + master: mymaster + nodes: 42.193.40.239:26379,42.193.40.239:26380,42.193.40.239:26381 + lettuce: + pool: + max-active: 8 + max-idle: 8 + min-idle: 0 + max-wait: 100 + shutdown-timeout: 50000 mvc: view: prefix: classpath:/templates/