【问题标题】:Session timeout configuration in Jhipster generated projectJhipster 生成项目中的会话超时配置
【发布时间】:2016-06-07 05:02:59
【问题描述】:

在 Jhipster 生成的项目中配置会话超时值时,我在 application-*.yml 文件中添加了以下内容:

server:
    session:
      timeout: 10 

但会话未在 10 秒后终止。我还缺少其他配置点吗?

【问题讨论】:

    标签: spring session spring-boot jhipster


    【解决方案1】:

    如果您使用基于令牌的身份验证(Oauth2 或 JWT) 然后尝试更改 jhipsterProperties.java 文件中的 tokenValidityInSeconds

    【讨论】:

    • 我的应用程序是基于会话的。
    猜你喜欢
    • 1970-01-01
    • 2017-09-15
    • 2019-06-19
    • 2019-01-22
    • 2021-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多