I am trying to have a totally XML-free config (using a AnnotationConfigWebApplicationContext).

How how do I create a @Configuration bean that will trigger the <task:annotation-driven /> logic and add support for @Async and @Scheduled methods?