junit41 [Test] 실제 DB로 @DataJpaTest 돌리면 뜨는 "Failed to replace DataSource with an embedded database for tests" 에러 마이바티스랑 JPA를 혼용해서 써보려는데 테스트 단계에서 에러가 떴다. Failed to replace DataSource with an embedded database for tests. If you want an embedded database please put a supported one on the classpath or tune the replace attribute of @AutoConfigureTestDatabase. 테스트에 사용한 어노테이션은 다음과 같다. @ExtendWith(SpringExtension.class) @DataJpaTest public class AccountRepositoryTest { } 그런데 @DataJpaTest가 문제였음... 학습테스트용이라 밑단부터 확인해.. 2021. 11. 6. 이전 1 다음 반응형