若依微服务如何设置令牌有效期?

逃离我推掉我的手 2023-10-01 09:47 99阅读 0赞

可以在ruoyi-common-core模块中的com.ruoyi.common.core.constant.CacheConstants类中设置。

  1. /**
  2. * 缓存有效期,默认720(分钟)
  3. */
  4. public final static long EXPIRATION = 720;
  5. /**
  6. * 缓存刷新时间,默认120(分钟)
  7. */
  8. public final static long REFRESH_TIME = 120;

发表评论

表情:
评论列表 (有 0 条评论,99人围观)

还没有评论,来说两句吧...

相关阅读