Spring Boot 2.2.x 버전부터는 junit5가 기본으로 설정되어있음
해당 프로젝트에서는 junit4를 사용하기 위해 변경
1. build.gradle -> dependencies 안에 아래 코드 넣기
testImplementation("org.junit.vintage:junit-vintage-engine") {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
2.Reload
'SpringBoot > 공부' 카테고리의 다른 글
| [Eclipse] JWT 토큰 발급 및 검증하기 (Maven, java 1.8) (0) | 2025.10.02 |
|---|---|
| [SpringBoot] 컨트롤러 API 테스트 (@WebMvcTest, MockMvc) (0) | 2025.02.02 |
| [SpringBoot] spring-boot-devtools 라이브러리 사용 방법 (0) | 2023.12.14 |
| [SpringBoot] 프로젝트 생성 시 run 오류 (0) | 2023.12.13 |
| [SpringBoot] Bean 등록 2 가지 (@Component, @Bean) (0) | 2023.12.12 |