일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 리트코드 1557
- leetcode
- 자바 리트코드
- dfs
- leetcode 1721
- BFS
- 백준 16935
- 인텔리제이 에러
- 스택
- 백준 18222
- 분할정복
- 자바
- java leetcode
- 프로그래머스
- 리트코드
- Java
- DP
- 프로그래머스 java
- 백준
- 구현
- 리트코드 자바
- 스프링 에러
- daily challenge
- 자바 5464
- 코딩테스트
- 그래프 자바
- 코테
- 카카오
- java 프로그래머스
- 파이썬
- Today
- Total
레벨업 일지
[에러] 스프링 java 버전 에러 본문
문제
에러 코드 메시지
No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.6' but:
- 대충 해석하자면, 너 프로젝트 자바 버전은 11이야. 근데 ...
원인
김영한 님의 스프링 인강 실습을 따라 가면서 Spring Boot 버전은 3.0.2 , Java 버전을 11 로 설정하여 인텔리제이로 열었더니
위와 같은 문제가 나왔다.
해결
스택오버플로우에
in intelliJ spring boot gradle plugin 3.0.0 no matching variant found - Stack Overflow
in intelliJ spring boot gradle plugin 3.0.0 no matching variant found
I'm trying to use version 3.0.0 of the spring boot Gradle plugin. Here's my build.gradle.kts file: import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("org.springframework...
stackoverflow.com
찾아보니 프로젝트 자바버전을 11 -> 17 로 바꾸어서 설정했더니 해결됐다 .!
자바 버전 설정은 이전에 포스팅 한적 있으니 참고 하시면 되겠다.
[IntelliJ/에러] 자바 스프링 초기 환경 설정 에러project JDK is not defined (tistory.com)
[IntelliJ/에러] 자바 스프링 초기 환경 설정 에러project JDK is not defined
문제 start.spring.io 를 이용해 스프링 부트 프로젝트 생성 이후 빌드도 안되고 위와 같은 화면이 나온다. 원인 인텔리제이 초기 설정시 jdk 세팅을 안 해주었다. jdk 에 대해서는 추후 포스팅 하겠다.
0713k.tistory.com
'JAVA > spring' 카테고리의 다른 글
[에러] - 인텔리제이 스프링 JSTL 500 에러 (0) | 2023.06.12 |
---|---|
[Annotation] @란? (0) | 2023.02.08 |
[에러] cannot resolve symbol 'validation' (1) | 2023.02.07 |
[에러] error: variable name not initialized in the default constructor (0) | 2023.02.07 |
[에러] failed :compileJava (0) | 2023.02.07 |