Search code examples
javaspringasynchronous

Spring XML equivalent of @EnableAsync


Is there a way to turn on Spring's Async configuration from XML? All the examples I saw are using programmatic context declaration and use @EnableAsync

Is there an XML equivalent for this. In some places I saw <context:annotation-config /> being used, but this doesn't mention anything about async .

I am using Spring 4.


Solution

  • Did you try using this

    <task:annotation-driven />