spring-config-task.xml 807 Bytes
<?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: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/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

    <!-- Enables the Spring Task @Scheduled programming model -->
    <task:executor id="executor" pool-size="50"/>
    <task:scheduler id="scheduler" pool-size="50"/>
    <task:annotation-driven executor="executor" scheduler="scheduler"/>

    <bean id="taskLogAspect" class="com.yoho.opsmanager.task.service.aop.TaskLogAspect" />

</beans>