chore: 统一session超时时间的key
This commit is contained in:
parent
a0b3525a4a
commit
ec7282fc18
|
@ -54,7 +54,7 @@ public class SystemParameterController {
|
||||||
|
|
||||||
@GetMapping("timeout")
|
@GetMapping("timeout")
|
||||||
public long getTimeout() {
|
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")
|
@GetMapping("/mail/info")
|
||||||
|
|
|
@ -88,10 +88,8 @@ management.server.port=8083
|
||||||
management.endpoints.web.exposure.include=*
|
management.endpoints.web.exposure.include=*
|
||||||
management.endpoints.enabled-by-default=false
|
management.endpoints.enabled-by-default=false
|
||||||
#spring.freemarker.checkTemplateLocation=false
|
#spring.freemarker.checkTemplateLocation=false
|
||||||
spring.session.timeout=${session.timeout:43200}
|
spring.session.timeout=43200s
|
||||||
spring.session.store-type=none
|
spring.session.store-type=none
|
||||||
# cookie
|
|
||||||
server.servlet.session.cookie.max-age=${session.timeout:43200}
|
|
||||||
# eureka
|
# eureka
|
||||||
eureka.client.service-url.defaultZone=http://localhost:8761/eureka/
|
eureka.client.service-url.defaultZone=http://localhost:8761/eureka/
|
||||||
eureka.instance.prefer-ip-address=true
|
eureka.instance.prefer-ip-address=true
|
||||||
|
|
Loading…
Reference in New Issue