first commit
This commit is contained in:
22
WebRoot/WEB-INF/spring-async.xml
Normal file
22
WebRoot/WEB-INF/spring-async.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user