瀏覽代碼

增加redis

xueyiming 11 月之前
父節點
當前提交
2ab81c5f40
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. 11 11
      long-article-recommend-service/src/main/resources/application-dev.yml

+ 11 - 11
long-article-recommend-service/src/main/resources/application-dev.yml

@@ -2,17 +2,17 @@ server:
   port: 8001
 
 spring:
-#  redis:
-#    hostName: r-bp1ps6my7lzg8rdhwx682.redis.rds.aliyuncs.com
-#    port: 6379
-#    password: Wqsd@2019
-#    timeout: 1000
-#    lettuce:
-#      pool:
-#        max-active: 8
-#        max-wait: -1
-#        max-idle: 8
-#        min-idle: 0
+  redis:
+    hostName: r-bp1ps6my7lzg8rdhwx682.redis.rds.aliyuncs.com
+    port: 6379
+    password: Wqsd@2019
+    timeout: 1000
+    lettuce:
+      pool:
+        max-active: 8
+        max-wait: -1
+        max-idle: 8
+        min-idle: 0
   datasource:
     crawler:
       jdbc-url: jdbc:mysql://rm-bp1159bu17li9hi94.mysql.rds.aliyuncs.com:3306/piaoquan-crawler?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false