解決: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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章