quartz. xml 配置文件 demo
#=====================================================
=======================#
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
default-autowire="byName" default-lazy-init="true">
<!-- 持久层对象 -->
<bean id="weatherProcessDao" class="com.*..WeatherProcessDaoImpl"/>
<bean id="weatherProcessService" class="com.*..WeatherProcessServiceImpl">
<property name="weatherProcessDao" ref="weatherProcessDao"/>
</bean>
<!-- Job注入声明 -->
<bean id="weatherProcessJob" class="com.*.*.*.WeatherProcessJob">
<property name="weatherProcessService" ref="weatherProcessService"/>
<property name="jobsService" ref="jobsService"/>
<property name="smsService" ref="smsService"/>
<property name="smsClient" ref="smsClient" />
</bean>
<!-- 任务计划注入声明 -->
<bean id="weatherProcessJobDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="weatherProcessJob" />
</property>
<property name="targetMethod">
<value>executeJob</value>
</property>
<property name="concurrent"><!--配置为false不允许任务并发执行-->
<value>false</value>