-
[SpringBoot] java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your testBackend/Spring 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
'Backend > Spring' 카테고리의 다른 글
[Pickmeup Web Project] 간단하게 핫한 태그 추천 알고리즘 만들기(1) (0) 2020.07.18 [Spring] IntelliJ에서 cannot resolve symbol.. 뜰 때 해결법 (0) 2020.07.18 [Spring] 와 스프링부트 엄청나다 대박이다.. (0) 2020.03.17 [Spring] 게시판 intelliJ+SpringMVC+Maven+Tomcat+JPA+H2 DB 환경으로 만들어 보자 ↗ (0) 2020.03.04 [Spring] Tomcat 서버 연동 시 잘 되다가 'address is already used···' 에러 날 때 해결법 (0) 2020.03.02