解决:Error:java: 无效的源发行版: 12 --菜鸟小回

解决:Error:java: 无效的源发行版: 12

一、 spring cloud项目启动。遇到问题:

enter description here

二、 解决,共两个地方。

第一个位置:

  1. Project Structure
    enter description here
  2. Modules选择你的项目(以及父级项目,如果有的话)->选择8(你的jdk版本) 如图:enter description here

第二个位置

1.Setting:
enter description here
2.查找java compiler->Target bytecode version 修改为8(你的jdk版本,同样注意父级项目):enter description here
3.重新启动吧enter description here

猜你喜欢

转载自blog.csdn.net/qq_39231769/article/details/106518747