Java/Spring Boot

Spring boot 3.2.3 설정

바리새인 2024. 3. 14. 20:29

프로젝트 생성

New > Other.. > Spring Boot > Spring Starter Project

Type: Maven
Packaging: Jar
Java Version: 17

실행

Window > Show View > Other..

Other > Boot Dashboard

Boot Dashboard에서 해당 프로젝트 선택 > (Re)start

Trouble Shooting

  • Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/SpringApplication has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0

JDK가 17이 아니라서 에러 발생함

Project > Properties > Java Build Path > Libraries > Modulepath

Add Library.. > JRE System Library

Alternate JRE > Installed JREs..

Add > Standard VM > Directory > {JDK17 디렉토리}