更改config中的web.xml
  <session-config>
    <session-timeout>30</session-timeout>
  </session-config>
把30盖长点就可以了