Backend/Spring
[SpringBoot] java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
dokylee
2020. 3. 20. 19:26
@SpringBootApplication 달린 클래스와 @SpringBootTest 달린 테스트 클래스 파일의 패키지 경로 맞춰주기.
reference: https://parkcheolu.tistory.com/125
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBoot
스프링부트 테스트를 실행할 때 다음과 같은 에러를 만날 수 있다. java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(cl..
parkcheolu.tistory.com