配置session最大不活动时间 web.xml中配置session的最大不活动时间 <session-config> <session-timeout>30</session-timeout> </session-config>