2

Why was the attribute mode removed from Spring 3.1 task xsd? It's there in 3.0 version, and also the code in Spring 3.1 classes still check for the attribute and activate AspectJ mode is found.

4

2 回答 2

3

有趣的!可能只是一个错误 - 我推测这是一个错误的原因是因为仍然可以通过@Configurationusing选择模式@EnableAsync(mode=AdviceMode.ASPECTJ)

这回答了您的部分问题,即为什么检查模式仍然存在于代码中 - 因为可以通过 @Configuration.

于 2012-04-28T02:09:58.963 回答
2

这是一个错误。在 3.1.4/3.2.1 中修复。使用 spring-task-3.0.xsd 或 spring-task-3.2.xsd 作为解决方法。

于 2014-04-23T06:48:32.993 回答