1:因为部分数据压在application中,定时运行quarz去把数据放到application中。
web.xml里加个
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
web.xml里加个
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
ServletContext=ContextLoader.getCurrentWebApplicationContext().getServletContext()