velocity配置中加入
<property name="exposeSessionAttributes" value="true"/>
将exposeSessionAttribute参数设为true
然后页面正常取值 ${session} 就可以了
velocity配置中加入
<property name="exposeSessionAttributes" value="true"/>
将exposeSessionAttribute参数设为true
然后页面正常取值 ${session} 就可以了