Java 我的石英不执行
我的代码Java 我的石英不执行,java,Java,我的代码 <bean id="EventNotificationDao" class="cn.secure.dao.EventNotificationDao"> <property name="jdbcTemplate" ref="jdbcTemplate" /> </bean> <bean id="EventNotificationService" class="cn.secure.service.impl.EventNotification
<bean id="EventNotificationDao" class="cn.secure.dao.EventNotificationDao">
<property name="jdbcTemplate" ref="jdbcTemplate" />
</bean>
<bean id="EventNotificationService" class="cn.secure.service.impl.EventNotificationServiceImpl">
<property name="EventNotificationDao" ref="EventNotificationDao" />
</bean>
<bean id="myTask" class="cn.secure.web.front.EventNotificationController">
<property name="EventNotificationService" ref="EventNotificationService" />
</bean>
<bean id="upgradeJobDetail1" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref ="myTask" />
<property name="targetMethod" value="addHttpNowData" />
</bean>
<bean id="upgradeTrigger1" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="upgradeJobDetail1" />
<property name="cronExpression" value="0/2 * * ? * *"/>
</bean>
<bean lazy-init="false"
class=" org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="upgradeTrigger1" />
</list>
</property>
<property name="taskExecutor" ref="executor" />
</bean>
未执行配置,也未报告任何错误
<bean lazy-init="false"
class=" org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="upgradeTrigger1" />
</list>
</property>
<property name="taskExecutor" ref="executor" />
</bean>
试试:
<bean lazy-init="false"
class=" org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="upgradeTrigger1" />
</list>
</property>
<property name="taskExecutor" ref="executor" />
</bean>