经排查eclipse启用jdk是1.8,而applicationContext中的spring为2.5。看网上说spring2.5检测不了jdk1.8. 解决发方法:Java Installed JREs启用1.7的