[오류내용]
프로젝트를 수행 중 test run해보니 아래와 같은 오류 발생
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
[오류해결]
@SpringBootTest(classes = HellobootApplication.class)
test 파일에 해당 java 파일 아래 해당 파일 경로 추가 해주면 오류 해결됨
'SpringBoot > 공부' 카테고리의 다른 글
build.gradle dependencies 추가할 경우 주의 사항 (2) | 2023.12.06 |
---|---|
@Conditional 어노테이션이란 ? (2) | 2023.11.30 |
[스프링 부트] 의존성 확인하기 (0) | 2023.11.29 |
익명클래스와 람다 (0) | 2023.11.20 |
@Controller와 @RestController 차이 (2) | 2023.11.15 |