Spring boot test 경로가 다른 패키지 테스트 시 오류

Kyle_Kim·2022년 9월 4일
0
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test

or

java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test

테스트 클래스의 경로와 테스트를 진행할 클래스의 패키지 위치가 동일 해야 한다.

profile
Make Things Right

0개의 댓글