<!-- 最终的启动工厂 list里面配置多个定时触发器-->
<bean id="SpringJobSchedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="consumeTimer"/>
</list>
</property>
<property name="configLocation" value="classpath:quartz.properties"/>
</bean>
configLocation属性一定要配置,否则quartz.properties里面设置的线程数量org.quartz.threadPool.threadCount无效,还是使用10个
<bean id="SpringJobSchedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="consumeTimer"/>
</list>
</property>
<property name="configLocation" value="classpath:quartz.properties"/>
</bean>
configLocation属性一定要配置,否则quartz.properties里面设置的线程数量org.quartz.threadPool.threadCount无效,还是使用10个
默认使用SimpleThreadPool,如果设置了TaskExecutor可以使用a JDK 1.5 ThreadPoolExecutor or a CommonJ WorkManager as Quartz backend
# Default Properties file for use by StdSchedulerFactory # to create a Quartz Scheduler Instance, if a different # properties file is not explicitly specified. # org.quartz.scheduler.instanceName: DefaultQuartzScheduler org.quartz.scheduler.rmi.export: false org.quartz.scheduler.rmi.proxy: false org.quartz.scheduler.wrapJobExecutionInUserTransaction: false org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool org.quartz.threadPool.threadCount: 1 org.quartz.threadPool.threadPriority: 5 org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true org.quartz.jobStore.misfireThreshold: 60000 org.quartz.jobStore.class: org.quartz.simpl.RAMJobStore