[Spring Test] @ContextConfiguration이란?

sonnie
lucky-sonnie
Published in
1 min readOct 13, 2020
@ContextConfiguration(classes = 클래스 이름.class)
@ContextConfiguration(locations = "파일의 경로")

@ContextConfiguration은 클래스 테스트가 테스트용 DI정보를 어디서 가져와야 하는지 지정할 때 사용하는 애노테이션이다.

출처

토비의 스프링1

--

--