Spring 无缝整合 quartz
关键步骤:
1. 配置 SchedulerFactoryBean
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"></bean>
2. 获取 SchedulerFactoryBean
ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(servletContext); SchedulerFactoryBean bean = (SchedulerFactoryBean)ctx.getBean(t) ;
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号