first commit
This commit is contained in:
30
bin/WebRoot/WEB-INF/spring-time.xml
Normal file
30
bin/WebRoot/WEB-INF/spring-time.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?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:p="http://www.springframework.org/schema/p"
|
||||
xmlns:task="http://www.springframework.org/schema/task"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
|
||||
http://www.springframework.org/schema/task
|
||||
http://www.springframework.org/schema/task/spring-task-4.1.xsd">
|
||||
|
||||
<!-- ======== start======== -->
|
||||
<bean id="ScadaModbusJob" class="com.sipai.quartz.job.ScadaModbusJob" />
|
||||
<bean id="ScadaModbusJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
|
||||
<property name="targetObject">
|
||||
<ref bean="ScadaModbusJob" />
|
||||
</property>
|
||||
<property name="targetMethod"> <!-- 要执行的方法名称 -->
|
||||
<value>execute</value>
|
||||
</property>
|
||||
</bean>
|
||||
<!-- 调度触发器 -->
|
||||
<bean id="CronTriggerBean_scada" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
|
||||
<property name="jobDetail" ref="ScadaModbusJobMethod"></property>
|
||||
<property name="cronExpression" value="*/6 * * * * ?"></property>
|
||||
</bean>
|
||||
<!-- ==========end============ -->
|
||||
|
||||
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user