无法配置配置了Spring任务XML的Async Exception Handler

时间:2015-11-26 10:32:03

标签: spring

根据Spring文档,应该能够在任务中指定:注释驱动的XML元素是AsyncUncaughtExceptionHandler接口的自定义实现。

如果我试试这个:

   <task:annotation-driven executor="myExecutor" exception-handler="myExceptionHandler"/>

我在Eclipse中遇到错误:

cvc-complex-type.3.2.2: Attribute 'exception-handler' is not allowed to appear in element 'task:annotation-driven

我正在使用Spring 4.2.3.RELEASE

感谢任何帮助

0 个答案:

没有答案