如何在jhipster中配置redis的密码?

问题描述 投票:1回答:1

请参考这个链接。https:/www.jhipster.techcommon-application-properties我找不到为redis配置密码的解决方案。

jhipster:
  http:
    cache: # Used by the CachingHttpHeadersFilter
      timeToLiveInDays: 1461
  cache: # Cache configuration
    redis: # Redis configuration
      expiration: 3600 # By default objects stay 1 hour (in seconds) in the cache
      server: redis://localhost:6379
redis jhipster
1个回答
0
投票
.setAddress(jHipsterProperties.getCache().getRedis().getServer()).setDatabase(1)
.setPassword("your password");`
© www.soinside.com 2019 - 2024. All rights reserved.