根据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
感谢任何帮助