IntelliJ Spring Boot 3.x 오류

성난호랑이 시니철 ㅣ 2024. 2. 13. 18:20

IntelliJ Spring Boot 3.x  오류

 

기존 프로젝트 말고 새로운 프로젝트 생성할일이 생겨서 gradle 로 spring boot 프로젝트를 생성하였다.

 

오류

하지만 오류가 발생하였다.

 

  • No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.2.2 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.5' but:

확인해보니 Java 버전 문제 Spring 3.x 는 Java 17부터 지원한다.

 

위 오류에서는 spring boot 버전을 2.x으로 변경하면 정상 동작한다.

 

하지만 최신버전을 사용하고싶어서 자바를 설치하고 설정을 변경해서 Spring Boot 3.x를 사용하였다.

 

IntelliJ 에서 바로 다운로드

file -> Project Structure

 

새로 고침 버튼을 누르면 정상 동작을 확인할수 있습니다.