Skip to content

登录超时间调整

java
//修改代码
public class TokenUserIdCacheKeyBuilder implements CacheKeyBuilder {
    // 默认8小时
    @Override
    public Duration getExpire() {
        return Duration.ofHours(8L);
    }
}
//修改代码
public class TokenUserIdCacheKeyBuilder implements CacheKeyBuilder {
    // 默认8小时
    @Override
    public Duration getExpire() {
        return Duration.ofHours(8L);
    }
}
yaml
# 修改配置文件
#acuity-oauth-server.yml
acuity:
  authentication:
    expire: 28800
# 修改配置文件
#acuity-oauth-server.yml
acuity:
  authentication:
    expire: 28800

欢迎使用天源云Saas快速开发系统