Ver código fonte

fix: 本地容器 redis配置问题

wuwenyi 5 dias atrás
pai
commit
65c8b6e135
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      src/main/resources/application.yml

+ 5 - 0
src/main/resources/application.yml

@@ -15,6 +15,11 @@ spring:
   jackson:
     date-format: yyyy-MM-dd HH:mm:ss
     time-zone: GMT+8
+  redis:
+    host: ${SPRING_REDIS_HOST:localhost}
+    port: ${SPRING_REDIS_PORT:6379}
+    password: ${SPRING_REDIS_PASSWORD:}
+    timeout: 5000ms
 
 mybatis-plus:
   mapper-locations: classpath*:/mapper/**/*.xml