freemarker中如何获取session中的id、创建时间等等
springboot
这是我的配置文件
spring:
###freemarker配置
freemarker:
cache: false
charset: UTF-8
check-template-location: true
content-type: text/html
expose-request-attributes: true
expose-session-attributes: true
request-context-attribute: request
suffix: .ftl
settings:
template_update_delay: 5
页面上${request.contextPath}可以获取对应的项目名
但是我现在想获取session中自带的id、session的创建时间 该怎么获取
查阅了下都是后续在session中set的值可以拿
同理我想获取request中的port、serverName也获取不了 只能获取request.contextPath
为啥。。。