Java WebTimerTask.SetApplication(event.getServletContext());是什么意思呢 [解决办法]定时器设置应用的上下方一般在侦听器里面用,例如spring上下文的实例化就是用这个方式进行的。