We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
登录时指定的SaLoginModel是否受框架配置中的timeout、activityTimeout影响,如 StpUtil.login("10000", new SaLoginModel() .setDevice(“web”) .setTimeout(60 * 60 * 24 * 7)); 这里指定了7天,会收到timeout、activityTimeout配置的影响吗,比如timeout=1天,activityTimeout=30分钟。
StpUtil.login("10000", new SaLoginModel() .setDevice(“web”) .setTimeout(60 * 60 * 24 * 7));
The text was updated successfully, but these errors were encountered:
首先,根据2020-12-24 @v1.7.0更新日志可以得知:activityTimeout控制token临时过期与续签功能,该参数不会影响到timeout的值,他们是两个不同的配置参数。 其次,根据StpUtil - 鉴权工具类SaLoginModel 配置示例中的注释可以得知:如未在SaLoginModel指定timeout,自动取全局配置的 timeout 值,个人理解这句话变相意思就是SaLoginModel指定timeout优先于全局配置的 timeout 值。
Sorry, something went wrong.
@m18311155200 感谢,就是像确认SaLoginModel 设置的Timeout会受到框架配置里参数(timeout、activityTimeout)影响吗
No branches or pull requests
对以下问题有疑问:
登录时指定的SaLoginModel是否受框架配置中的timeout、activityTimeout影响,如
StpUtil.login("10000", new SaLoginModel() .setDevice(“web”) .setTimeout(60 * 60 * 24 * 7));
这里指定了7天,会收到timeout、activityTimeout配置的影响吗,比如timeout=1天,activityTimeout=30分钟。
The text was updated successfully, but these errors were encountered: