Spring版本 3.0 JDK 1.8 问题原因为 在新增方法中使用了 array.forEach Spring 低版本不支持1.8JDK 的新语法 感谢 Spring项目中 findCandidateComponents 报错exception is java.lang.ArrayIndexOutOfBoundsException:_whp404的博客-CSDN博客