Intellij IDEA 14.1 中的错误 运行 Spring 批量应用

Error running Spring Batch application in Intellij IDEA 14.1

我在将我的 Spring 批处理应用程序 (war) 从 IntelliJ IDEA 14.1(终极版)部署到 Tomcat 服务器 6.0.26 时出现以下错误。

但是,如果我使用相同的 war 文件并在 Tomcat webapps 中手动部署它,那么我看不到任何错误。有人遇到过这个问题吗?

java.lang.IllegalStateException: org.springframework.batch.core.configuration.DuplicateJobException: A job configuration with this name [deferJob] was already registered

我终于找到问题了。出于某种原因,IntelliJ IDEA 从 /src/test/resources 中提取了重复的 spring 批处理 xml 文件。我已经向 IntelliJ 支持团队提出了这个问题。