junit5 failed to load applicationcontext 에러 해결
발생 원인 나는 application.yml 외에도 다른 yml 파일도 추가해서 사용하고 있었는데 그 yml 파일들의 값을 읽지 못해서 발생한 에러다. 해결 방법 첫 번째 @SpringBootTest 어노테이션에 properties 속성에 yml 경로를 추가하면 된다. Test폴더의 Main클래스에 추가하면 된다. import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest(properties = "spring.config.location = " + "classpath:/application.yml," + "classpath:/yml/coolsms.yml," + "c..