在web.xml中的web-app下加入 xml 代码 <session-config> <session-timeout>2session-timeout> session-config> 即可设定Timeout值为2分钟