chore: 统一session超时时间的key

This commit is contained in:
CaptainB 2022-12-07 22:45:24 +08:00
parent a0b3525a4a
commit ec7282fc18
2 changed files with 2 additions and 4 deletions

View File

@ -54,7 +54,7 @@ public class SystemParameterController {
@GetMapping("timeout")
public long getTimeout() {
return env.getProperty("session.timeout", Long.class, 43200L); // 默认43200s, 12个小时
return env.getProperty("spring.session.timeout", Long.class, 43200L); // 默认43200s, 12个小时
}
@GetMapping("/mail/info")

View File

@ -88,10 +88,8 @@ management.server.port=8083
management.endpoints.web.exposure.include=*
management.endpoints.enabled-by-default=false
#spring.freemarker.checkTemplateLocation=false
spring.session.timeout=${session.timeout:43200}
spring.session.timeout=43200s
spring.session.store-type=none
# cookie
server.servlet.session.cookie.max-age=${session.timeout:43200}
# eureka
eureka.client.service-url.defaultZone=http://localhost:8761/eureka/
eureka.instance.prefer-ip-address=true