看其他问题发现说jdk8不兼容spring4.x以下版本,在这里做一个记录,提醒自己。 可以看这篇博客:https://blog.csdn.net/badfraud/article/details/76946374