IntelliJ IDEA创建Spring工程报错IntelliJ IDEA创建Spring工程报错:Selected version of Java 17 is not supported by the project SDK '1.8'. Either choose a lower version of Java, or set a higher version of the SDK.

IntelliJ IDEA创建Spring工程报错:

Selected version of Java 17 is not supported by the project SDK '1.8'. Either choose a lower version of Java, or set a higher version of the SDK.  
To download additional SDKs, click the Project SDK drop-down.

 

 

问题原因:

电脑本地安装的JDK版本与IDEA创建Spring工程时默认的JDK版本17不一致,调整为本地版本8即可。

 

 

解决方法:

 

 再次点击创建工程就不会再报错啦!

 

 

 

posted @ 2023-02-08 22:05  远近啊  阅读(9342)  评论(0编辑  收藏  举报