about the use of @ Async in Spring
in the course of use, it is found that @ Async annotations can be used to handle asynchronism only when < task:annotation-driven/ > is configured in applicationContext.xml.
:
<task:annotation-driven/>
:
<task:annotation-driven executor="myExecutor"/>
<task:executor id="myExecutor" pool-size="5-10" queue-capacity="200" keep-alive="180" rejection-policy="ABORT"/>
has been using the first configuration, which is handled by spring"s default thread pool. However, when querying the use of various @ Async, it is the second configuration method used. I would like to ask what are the disadvantages of using the first one, and what is the difference between the two