Explorar o código

fix: 本地容器 redis配置问题

wuwenyi hai 6 días
pai
achega
65c8b6e135
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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