스프링 부트로 처음 프로젝트 생성하고 실행하려는 자바 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
'개발' 카테고리의 다른 글
[Spring Boot][Junit] 테스트 케이스 작성 (0) | 2023.06.29 |
---|---|
[Spring Boot] 동적 웹 페이지 개발 - API (0) | 2023.06.27 |
[Spring Boot] 동적 웹 페이지 개발 - MVC 패턴 (0) | 2023.06.27 |
[Spring Boot] 정적 웹 페이지 개발 (0) | 2023.06.27 |
[Spring Boot] Gradle 설정과 라이브러리 (0) | 2023.06.27 |