Files
SIPAIIS_WMS_JSSW/WebRoot/WEB-INF/spring-async.xml
2026-01-16 14:13:44 +08:00

22 lines
1.3 KiB
XML

<?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:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
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/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<!-- 包扫描 -->
<context:component-scan base-package="com.sipai.service"/>
<!-- 执行异步任务的线程池TaskExecutor -->
<!--<task:executor id="myexecutor" pool-size="100" />
<task:annotation-driven executor="myexecutor"/>-->
<!-- 执行异步任务的线程池TaskExecutor -->
<task:executor id="my_info_executor" pool-size="100" />
<task:annotation-driven executor="my_info_executor"/>
</beans>