我正在尝试将quartz与spring集成,文件位置从jsp页面传递给JobCSVfile类,但它没有占用该位置并显示空指针异常。而且我还想从我不知道该怎么做的jsp页面中调整时间,因为我在applicationcontext.xml
applicationcontext.xml中使用trigurring细节
<bean id="jobCSVfile"
class="com.vxl.appanalytix.dataload.quartz.JobCSVfile">
</bean>
<bean id="JobA" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass" value="com.vxl.appanalytix.dataload.quartz.JobCSVfile" />
<property name="jobDataAsMap">
<map>
<entry key="timeout" value="5" />
</map>
</property>
</bean>
<bean id="cronTriggerJobA" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="JobA" />
<property name="cronExpression" value="0/5 * * * * ?" />
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="jobDetails">
<list>
<ref bean="JobA" />
</list>
</property>
<property name="triggers">
<list>
<ref bean="cronTriggerJobA" />
</list>
</property>
</bean>
如果没有在applicationcontext.xml中进行调度,我们可以用其他方式吗?