我有两个task:executor
注释:
<task:executor id="asyncExecutor"
pool-size="5-100"
keep-alive="120"
rejection-policy="CALLER_RUNS"
queue-capacity="1000"/>
<task:executor id="otherExecutor"
pool-size="5-20"
keep-alive="120"
rejection-policy="CALLER_RUNS"
queue-capacity="100"/>
<bean id="asyncExceptionHandler" class="com.xx.xx.xx.xx.common.AsyncExceptionHandler"/>
<task:annotation-driven executor="asyncExecutor" exception-handler="asyncExceptionHandler"/>
我希望两个task:executors
使用相同的exception-handler
。
我该怎么办?