-
AutoConfigureRestTestClient개발 2026. 1. 27. 19:53
spring boot 4.0 이상부터는 spring boot starter web을 추가 하고 test를 추가 하더라도, RestTestTemplate이나 TestWebClient 같은 임베드 REST client를 제공 하지 않는다.
따라서, 아래 의존성을 추가하고, 테스트 모듈에 다음 어노테이팅이 필요 하다.testImplementation("org.springframework.boot:spring-boot-resttestclient")@AutoConfigureRestTestClient annotation class SomeSpringBootTest{ }'개발' 카테고리의 다른 글
k8s taints & toleration (0) 2025.11.14 Open Search Cluster mapper exception (0) 2025.10.29 도메인 주도 설계(DDD) 굳이 안해도 돼요 (0) 2025.09.17 테스트를 쓴다는 것 (0) 2025.04.18 PRD가 도착 했다. 개발자로서 나는 (0) 2025.03.06