瀏覽代碼

redis配置

elis 2 年之前
父節點
當前提交
e61f8fb623
共有 1 個文件被更改,包括 10 次插入1 次删除
  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
   # 索引名