springboot1.0为
server.session.timeout=
springboot2.0为
server.servlet.session.timeout=
我用的springboot2
按着ctrl 鼠标点击timeout,可以查看源码
要求的参数是Duration
这是jdk8新加的
点开Duration
意思为
基于时间的时间量
扫描二维码关注公众号,回复:
14313163 查看本文章

这个类以秒和纳秒为单位模拟时间的数量或数量。
可以使用其他基于持续时间的单位访问,例如分钟和小时。
继续往下翻
可以传值文本