错误信息:

严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.Error: Unresolved compilation problem: 
    '<>' operator is not allowed for source level below 1.7
] with root cause

关键报错信息:

'<>' operator is not allowed for source level below 1.7

经过分析,可看出是JRE版本的问题,需要将环境中的JRE版本,换成要求的1.7。

错误:导入项目与编译环境不符

这里右键 Properties

错误:导入项目与编译环境不符

选择1.7  点击ok  即可

注:在maven聚合项目中,每个项目都需要修改。

相关文章:

  • 2021-06-04
  • 2021-08-23
  • 2021-11-25
  • 2021-05-24
  • 2022-12-23
  • 2021-05-29
  • 2021-07-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-07-14
  • 2021-10-13
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案