最佳答案
您很可能需要创建一个HttpSessionListener.
另一个stackoverflow答案:
Detect session timeout in Spring 3/Spring Security 2.0.5
还有关于如何将spring bean加载到其中的示例:
http://www.mkyong.com/spring/spring-how-to-do-dependency-injection-in-your-session-listener/
另一个stackoverflow答案:
Detect session timeout in Spring 3/Spring Security 2.0.5
还有关于如何将spring bean加载到其中的示例:
http://www.mkyong.com/spring/spring-how-to-do-dependency-injection-in-your-session-listener/