Althars123 3 лет назад
Родитель
Сommit
385fab953e
1 измененных файлов с 24 добавлено и 22 удалено
  1. 24 22
      twzd-admin/src/main/resources/application-dev.yml

+ 24 - 22
twzd-admin/src/main/resources/application-dev.yml

@@ -55,27 +55,29 @@ spring:
                 wall:
                     config:
                         multi-statement-allow: true
-        # redis 配置
-        redis:
-            database: 2
-            # 地址
-            host: 192.168.8.213
-            # 端口,默认为6379
-            port: 6379
-            # 密码
-            password:
-            # 连接超时时间
-            timeout: 10s
-            lettuce:
-                pool:
-                    # 连接池中的最小空闲连接
-                    min-idle: 0
-                    # 连接池中的最大空闲连接
-                    max-idle: 8
-                    # 连接池的最大数据库连接数
-                    max-active: 8
-                    # #连接池最大阻塞等待时间(使用负值表示没有限制)
-                    max-wait: -1ms
+    cache:
+        type: redis
+    # redis 配置
+    redis:
+        database: 2
+        # 地址
+        host: 192.168.8.213
+        # 端口,默认为6379
+        port: 6379
+        # 密码
+        password:
+        # 连接超时时间
+        timeout: 10s
+        lettuce:
+            pool:
+                # 连接池中的最小空闲连接
+                min-idle: 0
+                # 连接池中的最大空闲连接
+                max-idle: 8
+                # 连接池的最大数据库连接数
+                max-active: 8
+                # #连接池最大阻塞等待时间(使用负值表示没有限制)
+                max-wait: -1ms
 
 
 
@@ -118,4 +120,4 @@ wxgzh:
     # 上传临时素材
     mediaUpload: https://api.weixin.qq.com/cgi-bin/media/upload?access_token=
     # 客服接口-发消息
-    messageCustomSend: https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=
+    messageCustomSend: https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=