Newer
Older
PgInterface / src / main / resources / spring / taskConfig-applicationContext.xml
yanxiaowei on 25 Mar 2020 1 KB 添加获取需要关闭的风机
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:task="http://www.springframework.org/schema/task"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
         http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd"
       default-lazy-init="true">

    <task:annotation-driven /> <!-- 定时器开关-->

    <bean id="PGTask" class="com.casic.PgInterface.overtimeInPG.task.SyncPGtask"></bean>

<!--    <task:scheduled-tasks>
        &lt;!&ndash;<task:scheduled ref="PGTask" method="getAllMac" cron="0 0 14 * * ? "/>&ndash;&gt;
        <task:scheduled ref="PGTask" method="getMacPosition" cron="0 0/5 * * * ? "/>
        &lt;!&ndash;<task:scheduled ref="PGTask" method="overtimeInPG" cron="0 0/20 * * * ?" />&ndash;&gt;
    </task:scheduled-tasks>-->

    <context:component-scan base-package="com.casic.PgInterface.overtimeInPG.task" />

</beans>