Browse Source

redis配置

elis 2 years ago
parent
commit
e61f8fb623
1 changed files with 10 additions and 1 deletions
  1. 10 1
      nngkxxdp/src/main/resources/application-prod.yml

+ 10 - 1
nngkxxdp/src/main/resources/application-prod.yml

@@ -25,7 +25,16 @@ spring:
   resources:
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.path},file:${file.location}
 #        url: jdbc:mysql://42.193.98.201:3306/wxdzs?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
-
+  redis:
+    database: 0
+    host: 192.168.197.128
+    port: 6379
+#    password: nan2022!Redis
+    jedis:
+      pool:
+        max-active: 50
+        max-idle: 20
+        min-idle: 5
 elasticsearch:
   ip: localhost:9200
   # 索引名