까마귀코딩.log
[ 스프링김영한-에러 ] No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found. 본문
카테고리 없음
[ 스프링김영한-에러 ] No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found.
까마귀코딩 2023. 2. 23. 13:42No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found.

강의를 수강하며 그대로 따라하고 있는데 시작부터 에러가 발생해버렸다.

이게 뭘까..
'No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found.'으로 구글에 검색했더니
웬걸 인프런에 같은 강의를 수강하는 사람이 질문글을 올렸길래 냅다 클릭했다.
결과적으로,
버전 문제였다.
스프링부트 3.x.x 버전은 자바 17,
스프링부트 2.x.x 버전은 자바 11을 사용해야 했던 것!좌측 상단의 Project > gradle에 들어가서
id 'org.springframework.boot' version '3.x.x'를
id 'org.springframework.boot' version '2.7.6'으로 변경해주었다.그랬더니 설치되기 시작! 오예
BUILD SUCCESFUL
TOMCAT이란 웹서버를 띄운다
Spring이라고 써진 문구가 귀여워서 캡쳐해봤다.😃추가로, 강의 중 Preferences가 나오는데, 아무리 찾아도 안나오는 것이었다.
File > Setting 으로 가면 되는 간단한 문제였다.
맥이면 command + , 눌러주면 뜬다 !몇가지 간단한 세팅을 쫓아가니까 금새 끝!
노랑글씨 보면 IntelliJ IDEA 라고 쓰여있는데 둘다 바꿔주자 !