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

阅读 60

2022-07-18


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

/**
* 缓存有效期,默认720(分钟)
*/
public final static long EXPIRATION = 720;

/**
* 缓存刷新时间,默认120(分钟)
*/
public final static long REFRESH_TIME = 120;

 

精彩评论(0)

0 0 举报