개발

[Spring Boot] java error: release version 17 not supported

타밍 2023. 7. 6. 17:58

스프링 부트로 처음 프로젝트 생성하고 실행하려는 자바 17버전 오류가 떴다

 

필자 상황

1. Java11 / IntelliJ

2. Spring Boot Starter(https://start.spring.io/) 로 프로젝트 생성

3. 이후 아무것도 안건들임

 

 

원인

스프링 부트 스타터로 프로젝트 생성할때 Java 버전을 17로 잘못 설정함

 

 

해결 방법

(1) JDK 17 설치

https://www.oracle.com/java/technologies/downloads/

 

Download the Latest Java LTS Free

Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.

www.oracle.com

 

(2) IntelliJ 설정 변경 (필자는 이것으로 해결)

File -> Settings -> Compiler -> Java Compiler : 11

File -> ProjectStructure -> Language level : 11