Spring boot 3.2.3 설정
2024. 3. 14. 20:29ㆍJava/Spring Boot
프로젝트 생성
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 디렉토리}
'Java > Spring Boot' 카테고리의 다른 글
Spring boot 3.2.5 and JDK17 셋팅 (0) | 2024.05.19 |
---|---|
Spring Authorization Server 테스트 (0) | 2024.03.14 |
Spring(Boot) 사용법 (0) | 2022.02.25 |
STS 에러 (0) | 2022.01.31 |
Spring Boot 설치 (0) | 2021.12.25 |