问题描述
- 哪位大神能帮帮忙解决下quartz问题
-
为啥**不用配置**JobDetailBean 可以使用quartz 网上好多quartz都要配置这东西,我的一个项目不用配置这东西,定时器照样使用,是默认调用吗? 配置文件 <bean name="quartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="dataSource"> <ref bean="dataSource" /> </property> <property name="applicationContextSchedulerContextKey" value="applicationContextKey" /> <property name="configLocation" value="classpath:/quartz/qz.properties" /> </bean>
java类 public class DelaySendCouponJobBean extends QuartzJobBean { private static final Logger logger = Logger.getLogger(DelaySendCouponJobBean.class); public DelaySendCouponJobBean() { // TODO Auto-generated constructor stub } @Override protected void executeInternal(JobExecutionContext jobexecutioncontext) throws JobExecutionException { // TODO Auto-generated method stub}} 数据库 ![图片说明](http://img.ask.csdn.net/upload/201603/22/1458643717_285313.png)
时间: 2025-01-20 02:42:01