Spring Boot session timeout

前端 未结 7 2110
隐瞒了意图╮
隐瞒了意图╮ 2020-12-31 06:28

server.session-timeout seems to be working only for embedded tomcat.

I put a log statement to check the session max interval time. After deploying the

7条回答
  •  猫巷女王i
    2020-12-31 07:15

    In your application.properties

    #session timeout (in secs for spring, in minutes for tomcat server/container)
    server.session.timeout=1
    

    I tested it and is working! It turns out that tomcat take the property in minutes

提交回复
热议问题