관리 메뉴

MOMONOTE

Could not resolve all files for configuration ':classpath' 본문

Spring

Could not resolve all files for configuration ':classpath'

momo0503 2023. 5. 14. 15:34

IntelliJ 에서  초기 프로젝트 세팅시 빌드 실패 메시지가 발생했다. 

 

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'board-toyproject'.
> Could not resolve all files for configuration ':classpath'.

 

 

 

원인 :  스프링 부트 버전과 자바 버전이 맞지 않았다. 

 

spring boot : 3. 0 버전  ,  JDK 는 1.8 로 설정했기 때문이다. 

file - setting - Build, Execution, Deployment - Build Tools - Gradle 
openjdk20 으로 바꾸어 빌드를 성공시켰다. 

 

※ spring boot 3.X 버전 은 jdk 17 이상으로 설정해야 함에 주의 .

 

 

 

'Spring' 카테고리의 다른 글

의존성 주입 (DI), Bean에 대해  (0) 2022.11.22
Comments