백엔드 공부/에러정리

Springboot3.0에서 [Spring] Could not resolve all files for configuration ':classpath'. 해결하기!!

철매존 2023. 6. 8. 23:46
728x90

Springboot3.0에서 [Spring] Could not resolve all files for configuration ':classpath'. 해결하기!!

Springboot3.0이 나왔다!!
근데 이거를 깃에서 클론받아서 쓰려하면 Could not resolve all files for configuration ':classpath'. 요런 에러가 나면서 안될때가 있다.

이게 안되는 이유는 아마 JDK버전 문제일 가능성이 크다.

왜냐면 Spring Boot 3.0 이상 버전에서는 JDK17이상만 지원하기 때문!

그니까 당신의 컴터는 다른 JDK인데 필요한게 JDK17이상이기 때문

해결법

IntelliJ의 preference에 들어가서 cmd + ,

Build, Execution, Deplyment -> Build Tools -> Gradle에 들어가서

Gradle JVM의 JDK 버전을 17이상으로 맞춰주면 해결된다!!