Notice
Recent Posts
Recent Comments
Link
07-22 06:02
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- 이클립스
- git오류
- Oracle join
- SQL
- lombok.jar
- 한글깨짐
- git push
- 오라클연습문제
- jdbc연결확인
- 마크다운 리스트
- 마크다운 테이블
- git
- SpringJUnit4ClassRunner
- @Setter(onMethod_ = @Autowired) Error
- Class<SpringJUnit4ClassRunner> cannot be resolved to a type
- 취성패
- java
- HTTP 상태 415 – 지원되지 않는 Media Type
- ejected-non-fast-forward
- rest방식
- oracle
- java.lang.NoClassDefFoundError:org/springframework/core/annotation/MergedAnnotations
- 정보처리기사
- jdbc연결테스트코드
- spring자바설정
- 스프링
- 마크다운 기본문법
- 오라클
- mysql한글깨짐
- 마크다운 링크
Archives
- Today
- Total
study-project
[오류]Class<SpringJUnit4ClassRunner> cannot be resolved to a type 본문
코드로 배우는 스프링 웹프로젝트 책을 따라해보는 중에 생긴 문제
책을 따라했지만 생기는 문제.. 그래서 검색을좀 했더니
test 관련된 설정을 import 못하는 문제라고 한다
캡쳐에는 없지만 import org.springframework.test.context........... 이부분들에 다 빨간줄이 나와있다
책에서는 이런 부분은 못봤는데 pom.xml에 추가해야할게 빠져있어서 생긴 문제다
<!-- https://mvnrepository.com/artifact/org.springframework/spring-test 테스트 오류시 이걸 추가 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.2.9.RELEASE</version>
<scope>test</scope>
</dependency>
그러고나서 어노테이션에 문제가 있다면
import org.springframework.beans.factory.annotation.Autowired;//이걸 추가
'TIL > Spring' 카테고리의 다른 글
[오류]spring Logger cannot be resolved to a type 해결 (0) | 2021.02.23 |
---|---|
[오류]web.xml is missing and <failOnMissingWebXml> is set to true (0) | 2021.02.18 |
[오류]java.lang.NoClassDefFoundError: org/springframework/core/annotation/MergedAnnotations (0) | 2021.02.17 |
JDBC 연결확인을 위한 테스트 코드 (0) | 2021.02.17 |
@Setter(onMethod_ = @Autowired) 에러 해결하기 (0) | 2021.02.17 |
Comments