java
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 오류 해결
범백
2022. 11. 29. 15:49
원본소스와 테스트코드의 소스의 위치가 서로 달라서 생기는 문제로
원본소스의 위치와 테스트코드의 위치를 일치 시켜주면 해결된다.
아래처럼 경로가 다르면 오류가 뜸
원본소스와 test코드를 같은경로로 일치시켜주면 해결됨