Skip to content
Discussion options

You must be logged in to vote

在 application.yaml 的写法:

spring:
  data:
    redis:
      host: localhost   # Redis 服务地址
      port: 6379        # Redis 服务端口
      database: 0       # Redis 数据库
      password: ""      # Redis 密码;无密码可留空或直接删除此项

halo:
  session:
    store-type: redis   # session 存储方式,默认不配置则为 in-memory
  redis:
    enabled: true       # 启用 Redis 服务

文档中其实写了 application.yaml 的配置格式:https://docs.halo.run/getting-started/install/config#%E9%80%9A%E8%BF%87%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6

但可能下面的参数没有具体示例,后续看看能不能优化下文档格式。

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CATOOILG
Comment options

@ruibaby
Comment options

Answer selected by CATOOILG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants